Skip to content

Update actions/checkout action to v4 (#46) #81

Update actions/checkout action to v4 (#46)

Update actions/checkout action to v4 (#46) #81

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.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} 🔧
uses: actions/setup-python@v4
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