Skip to content

build(deps): bump codecov/codecov-action from 4.2.0 to 4.5.0 #36

build(deps): bump codecov/codecov-action from 4.2.0 to 4.5.0

build(deps): bump codecov/codecov-action from 4.2.0 to 4.5.0 #36

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
tests:
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Hatch
id: hatch
shell: bash
run: |
pip install hatch
- name: Run unit tests
run: hatch run test:unit
- name: Run integration tests
run: hatch run test:integration --suppress-no-test-exit-code # Suppress the exit code of the integration tests until integration tests are added
# Upload coverage to codecov.io
# Ensure that the coverage is only uploaded once (if statement)
- name: Upload coverage to codecov.io
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}