From 46509c0fc0403ca2b2adc6b64789627582556886 Mon Sep 17 00:00:00 2001 From: Gabriel Moreira Date: Fri, 21 Jun 2024 15:56:05 +0200 Subject: [PATCH 1/2] fix: github actions ci should test against python 3.6 (the version the application was designed for at the time and was running in production) --- .github/workflows/test_backend.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_backend.yaml b/.github/workflows/test_backend.yaml index f42aa20..7a65136 100644 --- a/.github/workflows/test_backend.yaml +++ b/.github/workflows/test_backend.yaml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.6"] steps: - uses: actions/checkout@v3 @@ -27,4 +27,4 @@ jobs: CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} run: | - pytest tests \ No newline at end of file + pytest tests From 78da79755043abb22002e4af1049f685de84c63c Mon Sep 17 00:00:00 2001 From: Gabriel Moreira Date: Fri, 21 Jun 2024 16:44:42 +0200 Subject: [PATCH 2/2] fix: ping ubuntu 20.04 on github actions workflow --- .github/workflows/test_backend.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_backend.yaml b/.github/workflows/test_backend.yaml index 7a65136..0de8df1 100644 --- a/.github/workflows/test_backend.yaml +++ b/.github/workflows/test_backend.yaml @@ -5,7 +5,9 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + # As long as we need python 3.6 we need to pin ubuntu 20.04 + # https://github.com/actions/setup-python/issues/544 + runs-on: ubuntu-20.04 strategy: matrix: python-version: ["3.6"]