Skip to content

CI overhaul

CI overhaul #2566

Workflow file for this run

name: Pytest MSS
on:
push:
branches:
- develop
- stable
- 'GSOC**'
pull_request:
branches:
- develop
- stable
- 'GSOC**'
jobs:
Test-MSS:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
order: ["normal", "reverse"]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: latest
cache: true
environments: dev
- name: Run tests
timeout-minutes: 10
run: pixi run -e dev xvfb-run pytest
-v -n 6 --dist loadfile --max-worker-restart 4 --durations=20 --cov=mslib
${{ (matrix.order == 'normal' && ' ') || (matrix.order == 'reverse' && '--reverse') }} tests
- name: Collect coverage
if: ${{ (github.event_name == 'push' || github.event_name == 'pull_request') && matrix.order == 'normal' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pixi run -e dev coveralls --service=github