1010jobs :
1111 linux :
1212 runs-on : ubuntu-latest
13- defaults :
14- run :
15- shell : bash -l {0}
16-
1713 env :
1814 DATABASE_NAME : livedatadb
1915 DATABASE_USER : livedatauser
@@ -27,17 +23,10 @@ jobs:
2723
2824 steps :
2925 - name : Checkout code
30- uses : actions/checkout@v4
26+ uses : actions/checkout@v6
3127
32- - name : Setup Conda environment
33- uses : conda-incubator/setup-miniconda@v3
34- with :
35- auto-update-conda : true
36- channels : conda-forge,defaults
37- mamba-version : " *"
38- environment-file : environment.yml
39- cache-environment-key : ${{ runner.os }}-env-${{ hashFiles('**/environment.yml') }}
40- cache-downloads-key : ${{ runner.os }}-downloads-${{ hashFiles('**/environment.yml') }}
28+ - name : Setup Pixi
29+ uses : prefix-dev/setup-pixi@v0.9.3
4130
4231 - name : Start docker containers
4332 run : |
4837 run : sleep 30
4938
5039 - name : Run unit tests
51- run : python -m pytest tests/
40+ run : pixi run test
5241
5342 - name : Stop the coverage process
5443 # Stopping the coverage process allows the code coverage to be written to disk
@@ -58,19 +47,18 @@ jobs:
5847 run : docker cp live_data_server-django-1:/var/www/livedata/app /tmp/
5948
6049 - name : Combine and show code coverage
61- shell : bash -l {0}
6250 run : |
63- cd /tmp/app
64- coverage combine
65- coverage xml
66- cp coverage.xml $OLDPWD
67- coverage report
51+ pixi run coverage combine --data-file= /tmp/app/.coverage
52+ cp /tmp/app/. coverage src
53+ cd src
54+ pixi run coverage xml
55+ pixi run coverage report
6856
6957 - name : Bring down docker containers completely now
7058 # This will completely remove the containers
7159 run : docker compose down
7260
7361 - name : Upload coverage reports to Codecov
74- uses : codecov/codecov-action@v4
62+ uses : codecov/codecov-action@v5
7563 with :
7664 token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments