Check and test in docker #374
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |