Fix document config #120
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v7 | |
| - name: 馃煥 Set up Pixi | |
| uses: prefix-dev/setup-pixi@v0.10.2 | |
| with: | |
| environments: lint | |
| - name: 馃Ч Execute lint | |
| run: pixi run -e lint lint | |
| checks: | |
| name: Test 馃悕 ${{ matrix.environment }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| environment: [test-pyoldest, test-pylatest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: check out repo | |
| uses: actions/checkout@v7 | |
| - name: 馃煥 Set up Pixi | |
| uses: prefix-dev/setup-pixi@v0.10.2 | |
| with: | |
| environments: ${{ matrix.environment }} | |
| - name: 馃И Execute pytest | |
| env: | |
| pytest_github_report: true | |
| run: pixi run -e ${{ matrix.environment }} test --cov-report xml | |
| - name: 馃摝 Disambiguate coverage filename by environment and OS | |
| run: mv .coverage ".coverage.${{ matrix.environment }}.${{ matrix.os }}.xml" | |
| - name: 馃摛 Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |