Skip to content

Commit 6261930

Browse files
committed
Mark slow test
1 parent fb18b8f commit 6261930

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/2018.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
if: ${{ !contains(matrix.python-version, '2.' )}}
4646

4747
- name: Test with pytest
48-
run: pytest
48+
run: pytest -n auto --slow

2018/day21/test_day21.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
https://adventofcode.com/2018/day/21
55
"""
66

7+
import pytest
8+
79
from os import path
810
from .day21 import run_part1, run_part2
911

@@ -23,6 +25,7 @@ def test_part1():
2325
assert run_part1(file_content) == 6619857
2426

2527

28+
@pytest.mark.slow
2629
def test_part2():
2730
"""Tests for Part 2."""
2831
with open(_INPUT_FILE, 'r') as input_file:

2018/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pylint
22
pytest
3+
pytest-skip-slow
34
pytest-xdist

0 commit comments

Comments
 (0)