Skip to content

Update GitHub actions Thu 18 Apr 2024 #60

Update GitHub actions Thu 18 Apr 2024

Update GitHub actions Thu 18 Apr 2024 #60

Workflow file for this run

name: Checks
on:
pull_request:
branches:
- master
jobs:
black:
runs-on: ubuntu-latest
strategy:
matrix:
# For quotes on 3.10: https://github.com/actions/setup-python/issues/160
python_version: [3.8, 3.9, '3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- run: |
python -m pip install --upgrade pip
pip install -r development_requirements.txt
- run: black --check --verbose .
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
# For quotes on 3.10: https://github.com/actions/setup-python/issues/160
python_version: [3.8, 3.9, '3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- run: |
python -m pip install --upgrade pip
pip install -r development_requirements.txt
#
# Reference: https://thiagolopessilva.medium.com/running-unit-testing-on-github-action-using-pytest-61653d993c9c
#
- run: python -m pytest --import-mode=append tests/