Skip to content

Commit

Permalink
Merge branch 'iterate-benchmark' into release-0.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Callan Gray <[email protected]>
  • Loading branch information
calgray committed Jan 1, 2025
2 parents 93ee6c4 + 8cc9c9a commit 3b96f2a
Show file tree
Hide file tree
Showing 23 changed files with 883 additions and 468 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test and build

on: [push, pull_request, workflow_call]
on: [push, workflow_call]

jobs:
qa:
Expand All @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
python-version: [ "3.11", "3.12" ]
python-version: [ "3.9", "3.11", "3.13" ]

steps:
- uses: actions/checkout@v4
Expand All @@ -47,4 +47,31 @@ jobs:
run: poetry install

- name: Run tests
run: poetry run pytest
run: poetry run pytest --cov-branch --cov-report=xml

- name: Upload coverage reports to Codecov
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version == '3.13') }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

benchmark:
needs: qa
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.2.2

- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run pytest --benchmark-enable --benchmark-only
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit_autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: browniebroke/pre-commit-autoupdate-action@main
- uses: peter-evans/create-pull-request@v6
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
images: ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py311-plus"]
args: ["--py39-plus", "--keep-runtime-typing"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
Expand Down
Loading

0 comments on commit 3b96f2a

Please sign in to comment.