Skip to content

Fix a few bugs

Fix a few bugs #42

Workflow file for this run

name: Pull Request Events
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
test-unit:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
cache: pip
cache-dependency-path: setup.py
- name: 🏗 Install module
run: pip install .[tests]
- name: ⚙️ Add config file
run: cp config.sample.json config.json
- name: 🧶 Lint
run: ruff check --output-format=github .
- name: 🧪 Run tests
run: pytest
- name: ⬆️ Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cov.xml