Merge pull request #9 from ProsperoKay/v0 #53
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
name: Game theory package CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Python 3 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint pytest mypy | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Analysing the code with pylint | |
run: | | |
pylint $(git ls-files '*.py') | |
- name: Type Chescking the code with mypy | |
run: | | |
mypy $(git ls-files '*.py') | |
- name: Testing with pytest | |
run: | | |
pytest | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
concurrency: release | |
permissions: | |
id-token: write | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Python Semantic Release | |
uses: python-semantic-release/python-semantic-release@master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} |