From 17c1554c51c17b9638751ad5329c9a8a3566a656 Mon Sep 17 00:00:00 2001
From: Vincent Emonet <vincent.emonet@gmail.com>
Date: Tue, 9 Feb 2021 15:25:05 +0100
Subject: [PATCH] Fix test workflow

---
 .github/workflows/publish-package.yml | 12 ++++++------
 .github/workflows/run-tests.yml       | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml
index ab83a6a..0d5b93a 100644
--- a/.github/workflows/publish-package.yml
+++ b/.github/workflows/publish-package.yml
@@ -21,6 +21,12 @@ jobs:
       with:
         python-version: ${{ matrix.python-version }}
 
+    - name: Install dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install pytest flake8
+        pip install .
+
     - name: Check code style with flake8 (lint)
       run: |
         # warnings if there are Python syntax errors or undefined names 
@@ -29,12 +35,6 @@ jobs:
         # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
         flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
 
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        pip install pytest
-        pip install .
-
     - name: Test with pytest
       run: pytest
 
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index de28ec5..3a524d3 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -25,6 +25,12 @@ jobs:
       with:
         python-version: ${{ matrix.python-version }}
 
+    - name: Install dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install pytest flake8
+        pip install .
+
     - name: Check code style with flake8 (lint)
       run: |
         # warnings if there are Python syntax errors or undefined names 
@@ -33,12 +39,6 @@ jobs:
         # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
         flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
 
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        pip install pytest
-        pip install .
-
     - name: Test with pytest
       run: pytest
 
-- 
GitLab