jacobi_iteration_method.py the use of vector operations, which reduces the calculation time by dozens of times #1975
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
# Run only if a file is changed within the project_euler directory and related files | |
paths: | |
- "project_euler/**" | |
- ".github/workflows/project_euler.yml" | |
- "scripts/validate_solutions.py" | |
schedule: | |
- cron: "0 0 * * *" # Run everyday | |
name: "Project Euler" | |
jobs: | |
project-euler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install pytest and pytest-cov | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade pytest pytest-cov | |
- run: pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/ | |
validate-solutions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install pytest and requests | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade pytest requests | |
- run: pytest scripts/validate_solutions.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |