File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11on :
22 pull_request :
3- # only check if a file is changed within the project_euler directory
3+ # only check if a file is changed within the project_euler directory and related files
44 paths :
55 - ' project_euler/**'
66 - ' .github/workflows/project_euler.yml'
7+ - ' scripts/validate_solutions.py'
78
89name : ' Project Euler'
910
1718 run : |
1819 python -m pip install --upgrade pip
1920 python -m pip install --upgrade pytest pytest-cov
20- - run : pytest --doctest-modules --durations=10 -- cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
21+ - run : pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
2122 validate-solutions :
2223 runs-on : ubuntu-latest
2324 steps :
2728 run : |
2829 python -m pip install --upgrade pip
2930 python -m pip install --upgrade pytest
30- - run : pytest --durations=10 project_euler /validate_solutions.py
31+ - run : pytest scripts /validate_solutions.py
Original file line number Diff line number Diff line change 99 - name : Build
1010 install : pip install pytest-cov -r requirements.txt
1111 script :
12- - pytest --doctest-modules --ignore=project_euler/ --durations=10 -- cov-report=term-missing:skip-covered --cov=. .
12+ - pytest --doctest-modules --ignore=project_euler/ --cov-report=term-missing:skip-covered --cov=. .
1313after_success :
1414 - scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
1515notifications :
Original file line number Diff line number Diff line change 22[pytest]
33markers =
44 mat_ops: mark a test as utilizing matrix operations.
5+ addopts = --durations =10
File renamed without changes.
Original file line number Diff line number Diff line change 88import pytest
99
1010PROJECT_EULER_DIR_PATH = pathlib .Path .cwd ().joinpath ("project_euler" )
11- PROJECT_EULER_ANSWERS_PATH = PROJECT_EULER_DIR_PATH .joinpath (
12- "project_euler_answers.json"
11+ PROJECT_EULER_ANSWERS_PATH = pathlib . Path . cwd () .joinpath (
12+ "scripts" , " project_euler_answers.json"
1313)
1414
1515with open (PROJECT_EULER_ANSWERS_PATH ) as file_handle :
You can’t perform that action at this time.
0 commit comments