-
Notifications
You must be signed in to change notification settings - Fork 1
91 lines (78 loc) · 2.28 KB
/
test-isf-py38-pixi-linux.yml
File metadata and controls
91 lines (78 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Linux
on:
pull_request:
types: [opened, synchronize]
paths-ignore:
- README.md
- CHANGELOG.md
- .gitignore
- 'CITATION.cff'
branches:
- develop
- master
- rc**
push:
branches:
- master
- docs-test-env
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install & setup environment
uses: prefix-dev/setup-pixi@v0.8.8
with:
pixi-version: v0.53.0
cache: true
auth-host: prefix.dev
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
manifest-path: pyproject.toml
- name: Cache barrel cortex model
id: cache-bc-model
uses: actions/cache@v4
with:
path: barrel_cortex/
key: barrel-cortex-model
- name: Download barrel cortex model
if: steps.cache-bc-model.outputs.cache-hit != 'true'
run: |
echo ------------ Downloading barrel cortex model -------------
pixi r download_bc_model
- name: Preliminary setup
run: |
echo "------------ Preliminary setup for tests -------------"
echo "Creating tests/logs/ directory..."
mkdir -p ./tests/logs/
unset DISPLAY
if [ ! -d "$HOME/tmp" ]; then
mkdir $HOME/tmp
fi
export TMPDIR=$HOME/tmp
pixi r configure
- name: Test ISF
run: |
echo "Starting test suite..."
pixi r pytest -n 5 -rsx -vv --color=yes --durations=0 --cov-report xml:tests/logs/report_py38.xml --cov=. tests || exit 1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DASK_CONFIG: tests/dask_config.yml
- name: Save test logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: ${{ github.run_id }}_logs
path: |
./tests/logs/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./tests/logs/report_py38.xml
verbose: true