Skip to content

Check and test in docker #374

Check and test in docker

Check and test in docker #374

Workflow file for this run

---
name: CI
on:
push:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: opensafely-core/setup-action@v1
with:
install-just: true
python-version: "3.8"
cache-dependency-path: requirements.*.txt
- name: Check formatting, linting and import sorting
run: just check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: opensafely-core/setup-action@v1
with:
install-just: true
python-version: "3.8"
cache-dependency-path: requirements.*.txt
- name: Run tests
run: |
just test
docker-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: opensafely-core/setup-action@v1
with:
install-just: true
- name: Check formatting, linting and import sorting on docker
run: just docker/check
docker-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: opensafely-core/setup-action@v1
with:
install-just: true
- name: Run tests in docker
run: just docker/test