build(deps): bump eifinger/setup-rye from b0de59c61cc78ac1f58cbcb6e15e04ebd31b984b to 3ba482b332dbea88c6386046b84fbb0270bd1de9 in the actions group #243
Workflow file for this run
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: Code Coverage | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup rye | |
uses: eifinger/setup-rye@3ba482b332dbea88c6386046b84fbb0270bd1de9 | |
with: | |
enable-cache: true | |
cache-prefix: ${{ env.PYTHON_VERSION }} | |
- name: Install prerequisites | |
run: | | |
rye pin ${{ env.PYTHON_VERSION }} | |
rye sync | |
- name: Run tests | |
run: rye run test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
env_vars: OS,PYTHON_VERSION | |
check: | |
if: always() | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe | |
with: | |
jobs: ${{ toJSON(needs) }} |