Speed up initialization (#1977) #4250
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: Ribasim Python Tests | |
on: | |
push: | |
branches: [main, update/pixi-lock] | |
paths-ignore: [".teamcity/**"] | |
tags: ["*"] | |
pull_request: | |
paths-ignore: [".teamcity/**"] | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
pixi-environment: | |
- py312 | |
- py311 | |
- py310 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/setup-pixi@v0.8.1 | |
with: | |
pixi-version: "latest" | |
- name: Test Ribasim Python | |
run: pixi run --environment ${{ matrix.pixi-environment }} test-ribasim-python-cov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |