Use pyproject.toml purely #8
Workflow file for this run
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: python | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
PIPENV_VENV_IN_PROJECT: 1 | |
jobs: | |
style-check: | |
name: Lint on Python ${{matrix.python-version}} @${{matrix.os-image}} | |
runs-on: ${{matrix.os-image}} | |
strategy: | |
matrix: | |
os-image: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install PipEnv | |
run: pip install pipenv | |
- name: Install development packages with PipEnv | |
run: python3 ./bootstrap.py --dev | |
- name: Lint with flake8 and mypy | |
run: | | |
pipenv run flake8 | |
pipenv run mypy . | |
test: | |
name: Test on Python ${{matrix.python-version}} @${{matrix.os-image}} | |
runs-on: ${{matrix.os-image}} | |
strategy: | |
matrix: | |
os-image: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install PipEnv | |
run: pip install pipenv | |
- name: Install development packages with PipEnv | |
run: python3 ./bootstrap.py --dev | |
- name: Test with pytest | |
run: | | |
pipenv run pytest |