Skip to content

Merge pull request #80 from opensafely-core/dependabot/github_actions… #166

Merge pull request #80 from opensafely-core/dependabot/github_actions…

Merge pull request #80 from opensafely-core/dependabot/github_actions… #166

Workflow file for this run

---
name: CI
on:
push:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
cache: "pip"
cache-dependency-path: requirements.*.txt
- uses: extractions/setup-just@v1
- name: Check formatting, linting and import sorting
run: just check
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: requirements.*.txt
- uses: extractions/setup-just@v1
- name: Run tests
env:
PYTHON_VERSION: python${{ matrix.python-version }}
run: just test