Test on Windows and MacOS #7
Workflow file for this run
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: Test MSS | |
on: | |
push: | |
pull_request: | |
jobs: | |
Test-MSS: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["macos-12", "macos-14", "ubuntu-latest", "windows-latest"] | |
order: ["normal", "reverse"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build requirements.txt file | |
run: | | |
cat localbuild/meta.yaml | | |
sed -n '/^requirements:/,/^test:/p' | | |
sed -e "s/.*- //" | | |
sed -e "s/menuinst.*//" | | |
sed -e "s/.*://" > requirements.txt | |
cat requirements.d/development.txt >> requirements.txt | |
sed -i '/^$/d' requirements.txt | |
sed -i '/^#.*$/d' requirements.txt | |
cat requirements.txt | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: requirements.txt | |
environment-name: ci | |
- name: Run tests | |
timeout-minutes: 10 | |
run: micromamba run -n ci 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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global --add safe.directory /__w/MSS/MSS | |
mamba install coveralls | |
coveralls --service=github |