Skip to content

Commit ec1af0f

Browse files
committed
Update workflow file with the updated PE script
1 parent ca8689b commit ec1af0f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/project_euler.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
on:
22
pull_request:
3-
# only check if a file is changed within the project_euler directory and related files
3+
# Run only if a file is changed within the project_euler directory and related files
44
paths:
5-
- 'project_euler/**'
6-
- '.github/workflows/project_euler.yml'
7-
- 'scripts/validate_solutions.py'
5+
- "project_euler/**"
6+
- ".github/workflows/project_euler.yml"
7+
- "scripts/validate_solutions.py"
8+
schedule:
9+
- cron: "0 0 * * *" # Run everyday
810

9-
name: 'Project Euler'
11+
name: "Project Euler"
1012

1113
jobs:
1214
project-euler:
@@ -27,5 +29,7 @@ jobs:
2729
- name: Install pytest
2830
run: |
2931
python -m pip install --upgrade pip
30-
python -m pip install --upgrade pytest
32+
python -m pip install --upgrade pytest pygithub
3133
- run: pytest scripts/validate_solutions.py
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)