Skip to content

[caching] Explicitly specify utf-8 encoding for dir-cached dicts #9

[caching] Explicitly specify utf-8 encoding for dir-cached dicts

[caching] Explicitly specify utf-8 encoding for dir-cached dicts #9

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package + dev deps
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
coverage run -m pytest -vv
coverage report
coverage xml
coverage html
- name: Upload HTML coverage report
uses: actions/upload-artifact@v4
with:
name: htmlcov-py${{ matrix.python-version }}
path: htmlcov
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.12' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: true