chore: release v0.0.14 (#3) #83
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup python and uv | |
| uses: deargen/workflows/actions/setup-python-and-uv@master | |
| - name: Cache uv environment | |
| id: cache-uv | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-uv | |
| with: | |
| path: .venv | |
| key: ${{ runner.os }}-uv-${{ env.cache-name }}-${{ hashFiles('deps/lock/x86_64-manylinux_2_28/requirements-dev.txt', '.github/workflows/tests.yml', 'pyproject.toml') }} | |
| - if: steps.cache-uv.outputs.cache-hit == 'true' | |
| run: echo 'uv cache hit!' | |
| - name: Install dependencies | |
| if: steps.cache-uv.outputs.cache-hit != 'true' | |
| run: | | |
| uv venv | |
| source .venv/bin/activate | |
| uv pip install -r deps/lock/x86_64-manylinux_2_17/requirements-pytest.txt | |
| uv pip install . | |
| - name: Run pytest | |
| uses: deargen/workflows/actions/run-pytest@master | |
| with: | |
| additional-args: --cov-report=xml --cov-report=term | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| doctest: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup python and uv | |
| uses: deargen/workflows/actions/setup-python-and-uv@master | |
| - name: Cache uv environment | |
| id: cache-uv | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-uv | |
| with: | |
| path: .venv | |
| key: ${{ runner.os }}-uv-${{ env.cache-name }}-${{ hashFiles('deps/lock/x86_64-manylinux_2_28/requirements-dev.txt', '.github/workflows/tests.yml', 'pyproject.toml') }} | |
| - if: steps.cache-uv.outputs.cache-hit == 'true' | |
| run: echo 'uv cache hit!' | |
| - name: Install dependencies | |
| if: steps.cache-uv.outputs.cache-hit != 'true' | |
| run: | | |
| uv venv | |
| source .venv/bin/activate | |
| uv pip install -r deps/lock/x86_64-manylinux_2_17/requirements-dev.txt | |
| uv pip install -e . | |
| - name: Run doctest | |
| uses: deargen/workflows/actions/run-doctest@master | |
| lint-essential: | |
| uses: deargen/workflows/.github/workflows/check-ruff.yml@master | |
| with: | |
| check-type: lint-essential | |
| # ruff-version-file: deps/lock/x86_64-manylinux_2_28/requirements_dev.txt |