Skip to content

Update actions/setup-python action to v5 #71

Update actions/setup-python action to v5

Update actions/setup-python action to v5 #71

Workflow file for this run

name: build
on: # cf. https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} 🔧
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies ⚙️
run: |
python -m pip install --upgrade pip
pip install --upgrade . -r dev-requirements.txt
- name: Execute all pre-commit hooks on all files ☑
run: pre-commit run --all-files
- name: Running tests ☑
run: pytest