Skip to content
Closed
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ jobs:
python -m pip install --upgrade pip setuptools six wheel
python -m pip install pytest-cov -r requirements.txt
- name: Run tests
# TODO: #8818 Re-enable quantum tests
# TODO: #8818 Re-enable filenames ending with `.py.DISABLED`.
run: pytest
--ignore=quantum/q_fourier_transform.py
--ignore=project_euler/
--ignore=scripts/validate_solutions.py
--ignore=scripts/validate_solutions.py .
- name: Check test coverage
run: pytest
--cov-report=term-missing:skip-covered
--cov=. .
--cov=.
--ignore=project_euler/
--ignore=scripts/validate_solutions.py .
- if: ${{ success() }}
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
6 changes: 2 additions & 4 deletions DIRECTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
* [Postfix Evaluation](data_structures/stacks/postfix_evaluation.py)
* [Prefix Evaluation](data_structures/stacks/prefix_evaluation.py)
* [Stack](data_structures/stacks/stack.py)
* [Stack Using Two Queues](data_structures/stacks/stack_using_two_queues.py)
* [Stack With Doubly Linked List](data_structures/stacks/stack_with_doubly_linked_list.py)
* [Stack With Singly Linked List](data_structures/stacks/stack_with_singly_linked_list.py)
* [Stock Span Problem](data_structures/stacks/stock_span_problem.py)
Expand Down Expand Up @@ -791,7 +792,7 @@

## Physics
* [Altitude Pressure](physics/altitude_pressure.py)
* [Archimedes Principle](physics/archimedes_principle.py)
* [Archimedes Principle Of Buoyant Force](physics/archimedes_principle_of_buoyant_force.py)
* [Basic Orbital Capture](physics/basic_orbital_capture.py)
* [Casimir Effect](physics/casimir_effect.py)
* [Centripetal Force](physics/centripetal_force.py)
Expand Down Expand Up @@ -1111,9 +1112,6 @@
* Problem 800
* [Sol1](project_euler/problem_800/sol1.py)

## Quantum
* [Q Fourier Transform](quantum/q_fourier_transform.py)

## Scheduling
* [First Come First Served](scheduling/first_come_first_served.py)
* [Highest Response Ratio Next](scheduling/highest_response_ratio_next.py)
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,14 @@ addopts = [
"--showlocals",
]

[tool.coverage.report]
[tool.coverage.run]
omit = [
".env/*",
"project_euler/*"
"project_euler/*",
"scripts/validate_solutions.py"
]

[tool.coverage.report]
sort = "Cover"

[tool.codespell]
Expand Down