Adding runner.exe.manifest #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run the tests on the python version of tictactoe | |
name: Python | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./tictactoe_python | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Installation | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install pytest-cov | |
pip install pyright | |
pip install pylint | |
pip install -r requirements.txt | |
- name: Check formatting with black | |
uses: psf/black@stable | |
- name: Lint with ruff | |
uses: chartboost/ruff-action@v1 | |
with: | |
version: 0.0.277 | |
- name: Typecheck with pyright | |
uses: jakebailey/pyright-action@v1 | |
with: | |
version: 1.1.316 | |
working-directory: ./tictactoe_python | |
- name: Thorough check with pylint | |
run: pylint tictactoe_python.py | |
- name: Test with pytest | |
run: | | |
coverage run -m pytest --durations=10 | |
coverage report -m | |
coverage json | |
coverage html | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: ./tictactoe_python/htmlcov/ |