File tree 7 files changed +8
-48
lines changed
7 files changed +8
-48
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
on :
2
2
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
4
4
paths :
5
5
- ' project_euler/**'
6
6
- ' .github/workflows/project_euler.yml'
7
+ - ' scripts/validate_solutions.py'
7
8
8
9
name : ' Project Euler'
9
10
17
18
run : |
18
19
python -m pip install --upgrade pip
19
20
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/
21
22
validate-solutions :
22
23
runs-on : ubuntu-latest
23
24
steps :
27
28
run : |
28
29
python -m pip install --upgrade pip
29
30
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 9
9
- name : Build
10
10
install : pip install pytest-cov -r requirements.txt
11
11
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=. .
13
13
after_success :
14
14
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
15
15
notifications :
Original file line number Diff line number Diff line change 2
2
[pytest]
3
3
markers =
4
4
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 8
8
import pytest
9
9
10
10
PROJECT_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"
13
13
)
14
14
15
15
with open (PROJECT_EULER_ANSWERS_PATH ) as file_handle :
You can’t perform that action at this time.
0 commit comments