-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (42 loc) · 1.24 KB
/
nightly.yml
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
name: nightly
on:
schedule:
- cron: '00 06 * * *'
workflow_dispatch: ~
jobs:
webknossos_nightly:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
group: [1, 2, 3]
fail-fast: false
defaults:
run:
working-directory: webknossos
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Install dependencies
run: |
pip install poetry
poetry install --extras all
- name: Re-generate client code
run: ./generate_client.sh
- name: Check if git is dirty
run: |
git diff --no-ext-diff --quiet --exit-code
[[ -z $(git status -s) ]]
- name: Python tests, refreshing the network snapshots
env:
WK_TOKEN: ${{ secrets.WK_TOKEN }}
run: ./test.sh --refresh-snapshots --splits 3 --group ${{ matrix.group }}
- name: Python tests, using the new snapshots
env:
WK_TOKEN: ${{ secrets.WK_TOKEN }}
run: ./test.sh --refresh-snapshots --splits 3 --group ${{ matrix.group }}