From fcb0d1b620fc5085b62c8b0da365404691fb4b6b Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 16 Oct 2020 16:32:53 +0530
Subject: [PATCH 1/7] Add GitHub action for Project Euler only

---
 .github/workflows/validate_solutions.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 .github/workflows/validate_solutions.yml

diff --git a/.github/workflows/validate_solutions.yml b/.github/workflows/validate_solutions.yml
new file mode 100644
index 000000000000..fd7be725fa34
--- /dev/null
+++ b/.github/workflows/validate_solutions.yml
@@ -0,0 +1,19 @@
+on:
+  pull_request:
+    paths:
+      - 'project_euler/**'
+      - '.github/workflows/validate_solutions.yml'
+
+name: 'Validate Project Euler solutions'
+
+jobs:
+  validate-solution:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-python@2
+      - name: Install pytest
+        run: |
+          python -m pip install --upgrade pip
+          python -m pip install --upgrade pytest
+      - run: pytest --durations=10 project_euler/validate_solutions.py

From 183daa669d49af5f8c281e0ef470988667459f59 Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 16 Oct 2020 16:45:06 +0530
Subject: [PATCH 2/7] Add second job for Project Euler

---
 .github/workflows/validate_solutions.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/validate_solutions.yml b/.github/workflows/validate_solutions.yml
index fd7be725fa34..cfe4b023f11a 100644
--- a/.github/workflows/validate_solutions.yml
+++ b/.github/workflows/validate_solutions.yml
@@ -1,13 +1,24 @@
 on:
   pull_request:
+    # only check if a file is changed within the project_euler directory
     paths:
       - 'project_euler/**'
       - '.github/workflows/validate_solutions.yml'
 
-name: 'Validate Project Euler solutions'
+name: 'Project Euler'
 
 jobs:
-  validate-solution:
+  project-euler:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-python@v2
+      - 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 --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
+  validate-solutions:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2

From a06212064d8e1c349c75c5ea4568ecf155368c21 Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 16 Oct 2020 16:48:28 +0530
Subject: [PATCH 3/7] Remove Project Euler jobs from Travis CI

---
 .travis.yml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index f31dae8467d6..19c362edcbc0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,16 +10,16 @@ jobs:
       install: pip install pytest-cov -r requirements.txt
       script:
         - pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
-    - name: Project Euler
-      install:
-        - pip install pytest-cov
-      script:
-        - pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
-    - name: Project Euler Solution
-      install:
-        - pip install pytest
-      script:
-        - pytest --tb=short --durations=10 project_euler/validate_solutions.py
+    # - name: Project Euler
+    #   install:
+    #     - pip install pytest-cov
+    #   script:
+    #     - pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
+    # - name: Project Euler Solution
+    #   install:
+    #     - pip install pytest
+    #   script:
+    #     - pytest --tb=short --durations=10 project_euler/validate_solutions.py
 after_success:
   - scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
 notifications:

From 281f45c6f89ec90abfd17ef366e153dc42d445c9 Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 16 Oct 2020 16:52:11 +0530
Subject: [PATCH 4/7] Fix typo for actions/setup-python

---
 .github/workflows/validate_solutions.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/validate_solutions.yml b/.github/workflows/validate_solutions.yml
index cfe4b023f11a..b6ee7a866b9d 100644
--- a/.github/workflows/validate_solutions.yml
+++ b/.github/workflows/validate_solutions.yml
@@ -22,7 +22,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
-      - uses: actions/setup-python@2
+      - uses: actions/setup-python@v2
       - name: Install pytest
         run: |
           python -m pip install --upgrade pip

From 3bf31665a694e6394bb7dd00d03a8b8cd515e07f Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 16 Oct 2020 17:17:15 +0530
Subject: [PATCH 5/7] Rename the workflow file

---
 .github/workflows/{validate_solutions.yml => project_euler.yml} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename .github/workflows/{validate_solutions.yml => project_euler.yml} (100%)

diff --git a/.github/workflows/validate_solutions.yml b/.github/workflows/project_euler.yml
similarity index 100%
rename from .github/workflows/validate_solutions.yml
rename to .github/workflows/project_euler.yml

From 131483a549fd3e9eeac05bdbf185c1f903733cd0 Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Fri, 16 Oct 2020 17:20:36 +0530
Subject: [PATCH 6/7] Change name of file in workflow

---
 .github/workflows/project_euler.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/project_euler.yml b/.github/workflows/project_euler.yml
index b6ee7a866b9d..852b0adbcb56 100644
--- a/.github/workflows/project_euler.yml
+++ b/.github/workflows/project_euler.yml
@@ -3,7 +3,7 @@ on:
     # only check if a file is changed within the project_euler directory
     paths:
       - 'project_euler/**'
-      - '.github/workflows/validate_solutions.yml'
+      - '.github/workflows/project_euler.yml'
 
 name: 'Project Euler'
 

From c134975832c534fc317cb86704ad6e5a17e0865f Mon Sep 17 00:00:00 2001
From: Dhruv Manilawala <dhruvmanila@gmail.com>
Date: Sat, 17 Oct 2020 08:14:18 +0530
Subject: [PATCH 7/7] Remove comments from Travis config file

---
 .travis.yml | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 19c362edcbc0..2a4a6392d4e7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,16 +10,6 @@ jobs:
       install: pip install pytest-cov -r requirements.txt
       script:
         - pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
-    # - name: Project Euler
-    #   install:
-    #     - pip install pytest-cov
-    #   script:
-    #     - pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
-    # - name: Project Euler Solution
-    #   install:
-    #     - pip install pytest
-    #   script:
-    #     - pytest --tb=short --durations=10 project_euler/validate_solutions.py
 after_success:
   - scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
 notifications: