chore: put back token for pypi publish (#51) #10
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: Continuous Integration | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repository | |
- name: Check out hrv-analysis | |
uses: actions/checkout@v4 | |
# Install the latest version of uv | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
# Install dependencies | |
- name: Install dependencies | |
run: uv sync --all-extras | |
# Launch tests | |
- name: Run unit tests | |
run: uv run pytest | |
# Run coverage | |
- name: Run coverage | |
run: | | |
uv run coverage run -m pytest | |
uv run coverage xml | |
# Deactivate until we have a Codecov account | |
# - name: Upload coverage to Codecov | |
# if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# files: ./coverage.xml | |
# fail_ci_if_error: true |