Skip to content

Commit a0e12aa

Browse files
committed
just exclude slow tests for now
1 parent 7093e72 commit a0e12aa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/run-tests-push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: sudo apt install xvfb
1616
- run: pip install --upgrade pip
1717
- run: pip install .[dev]
18-
- run: xvfb-run pytest -v -rP --doctest-modules countess/ tests/
18+
- run: xvfb-run pytest -m "not slow" -v -rP --doctest-modules countess/ tests/
1919

2020
run-tests-ubuntu-22_04-python-3_11_from_apt:
2121
runs-on: ubuntu-22.04
@@ -26,7 +26,7 @@ jobs:
2626
- run: sudo apt install python3.11-full python3-pip xvfb
2727
- run: python3.11 -m pip install --upgrade pip
2828
- run: python3.11 -m pip install -e .[dev]
29-
- run: xvfb-run python3.11 -m pytest -v -rP --doctest-modules countess/ tests/
29+
- run: xvfb-run python3.11 -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/
3030

3131
run-tests-ubuntu-24_04-python-3_12_from_apt:
3232
runs-on: ubuntu-24.04
@@ -39,7 +39,7 @@ jobs:
3939
- run: python3.12 -m venv /tmp/venv
4040
- run: /tmp/venv/bin/python -m pip install --upgrade pip
4141
- run: /tmp/venv/bin/python -m pip install -e .[dev]
42-
- run: xvfb-run /tmp/venv/bin/python -m pytest -v -rP --doctest-modules countess/ tests/
42+
- run: xvfb-run /tmp/venv/bin/python -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/
4343

4444
run-tests-ubuntu-24_04-python-3_13:
4545
runs-on: ubuntu-24.04
@@ -56,6 +56,6 @@ jobs:
5656
- run: python3 -m venv /tmp/venv
5757
- run: /tmp/venv/bin/python -m pip install --upgrade pip
5858
- run: /tmp/venv/bin/python -m pip install -e .[dev]
59-
- run: xvfb-run /tmp/venv/bin/coverage run --source countess -m pytest -v -rP --doctest-modules countess/ tests/
59+
- run: xvfb-run /tmp/venv/bin/coverage run --source countess -m pytest -m "not slow" -v -rP --doctest-modules countess/ tests/
6060
- run: echo '### Coverage Report' >> $GITHUB_STEP_SUMMARY
6161
- run: /tmp/venv/bin/coverage report --format=markdown --skip-empty --sort=-cover >> $GITHUB_STEP_SUMMARY

tests/test_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@pytest.mark.slow
1818
def test_command_invocation():
1919
run(["tests/simple.ini"])
20-
time.sleep(5)
20+
time.sleep(0.5)
2121
with open("tests/output.csv", "r", encoding="utf-8") as fh:
2222
output = fh.read()
2323
assert output == expected_output

0 commit comments

Comments
 (0)