Skip to content

Commit 216cbfa

Browse files
committed
fix(ci): exclude integration tests from pytest in build workflow
The CI workflow was running all tests including integration tests by using -m "" (empty marker filter). Integration tests require external resources (Maven artifacts, Git repos) and should be skipped by default in CI. Use the standard marker filter -m "not slow and not integration" to match pyproject.toml configuration and only run unit tests in the build pipeline. Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
1 parent b24953a commit 216cbfa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
python-version: "3.13"
2929
- name: Install dependencies
3030
run: pip install hatch
31-
- name: Run unit and integrations tests
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
run: hatch run dev:pytest -m "" --cov=reqstool --cov-report=html -o junit_family=xunit2 --junitxml=build/junit.xml
31+
- name: Run unit tests
32+
run: hatch run dev:pytest -m "not slow and not integration" --cov=reqstool --cov-report=html -o junit_family=xunit2 --junitxml=build/junit.xml
3533
- name: Build project
3634
run: hatch build
3735
- name: Test reqstool-client from build by installing and running

0 commit comments

Comments
 (0)