diff --git a/.coverage b/.coverage index 942a47b7..02b3548d 100644 Binary files a/.coverage and b/.coverage differ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..9d1dab9d --- /dev/null +++ b/.github/workflows/test.yml @@ -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/python-coverage-comment-action@v3.25 + diff --git a/pyproject.toml b/pyproject.toml index 13644a76..f0a8df18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,4 +66,7 @@ packages = ["src/posting"] [tool.pytest.ini_options] markers = [ "serial", # used to indicate tests must not run in parallel -] \ No newline at end of file +] + +[tool.coverage.run] +relative_files = true \ No newline at end of file