Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jul 21, 2024
1 parent cf164c8 commit 6655331
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Binary file modified .coverage
Binary file not shown.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on: [push, pull_request]
env:
PYTEST_ADDOPTS: "--color=yes"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
architecture: 'x64'
- name: Install a specific version
uses: eifinger/setup-rye@v4
with:
version: '0.35.0'
- name: Run tests
run: rye run make test
- name: Code coverage comment
uses: py-cov-action/[email protected]

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@ packages = ["src/posting"]
[tool.pytest.ini_options]
markers = [
"serial", # used to indicate tests must not run in parallel
]
]

[tool.coverage.run]
relative_files = true

0 comments on commit 6655331

Please sign in to comment.