Skip to content

mv BitBoardMethods to ReversiMethods #34 #23

mv BitBoardMethods to ReversiMethods #34

mv BitBoardMethods to ReversiMethods #34 #23

name: unittest_ubuntu_macos
on:
push:
branches:
- master
- develop
paths:
- '**.py'
- '**.pyx'
jobs:
unittest_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.7"
architecture: x64
- name: Checkout reversi
uses: actions/checkout@master
- name: get python version
run: python -V
- name: Install requirements.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: unittest for python
run: |
exec Xvfb :99 -screen 0 1366x768x16 &
sleep 3
export DISPLAY=:99
python -m unittest discover tests -v
unittest_macos:
runs-on: macos-latest
steps:
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
architecture: x64
- name: Checkout reversi
uses: actions/checkout@master
- name: get python version
run: python -V
- name: Install requirements.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: unittest for python
run: python -m unittest discover tests -v