nightly #947
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: nightly | |
on: | |
schedule: | |
- cron: '00 06 * * *' | |
workflow_dispatch: ~ | |
jobs: | |
webknossos_nightly: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
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 --with examples --with dev | |
- 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 }} |