From 0494a2138e39fa38b8e79f856f62b316f9e80557 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 28 May 2021 14:09:13 +0200 Subject: [PATCH 1/4] add pytest --- .github/workflows/pythonapp.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 03fb42cf..5639973b 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -24,7 +24,7 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # 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: Test with pytest - # run: | - # pip install pytest - # pytest + - name: Test with pytest + run: | + pip install pytest + pytest From 9280b8c3f6e0bb7f7d9602db3bcb8af1905be2a8 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 28 May 2021 14:12:26 +0200 Subject: [PATCH 2/4] change python version to 3.9 --- .github/workflows/pythonapp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 5639973b..a87d7f28 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up Python 3.7 + - name: Set up Python 3.9 uses: actions/setup-python@v1 with: - python-version: 3.7 + python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip From 1ceeeb7c47598c5df4ca925a0c0314efa64f0c18 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 28 May 2021 14:37:06 +0200 Subject: [PATCH 3/4] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index a87d7f28..185dccc0 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -26,5 +26,6 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | + apt install ffmpeg pip install pytest pytest From 0be8ce1b36ee33b6358496f132376b844bbd7284 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 28 May 2021 14:40:23 +0200 Subject: [PATCH 4/4] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 185dccc0..4324ee6a 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -26,6 +26,6 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - apt install ffmpeg + sudo apt install ffmpeg pip install pytest pytest