WIP: Support multiple marking sessions #642
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: Run project tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 | |
- name: Run django tests | |
uses: ./.github/actions/in-container | |
with: | |
use_dev_image: false | |
run: | | |
mkdir -p applogs | |
script/bootstrap | |
script/test --coverage | |
# do this inside the docker container otherwise the paths don't work | |
- name: generate coverage xml | |
uses: ./.github/actions/in-container | |
with: | |
run: coverage xml | |
# do this outside the docker container otherwise can't get repo details | |
- name: upload code coverage | |
run: | | |
less coverage.xml | |
pip install codecov | |
codecov |