From 2857b2dddc3040beb33c544c4f678d0cd69d8df7 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Sun, 9 Jun 2024 14:57:05 +0100 Subject: [PATCH] attempting to make CI work for python 3.6 --- .github/workflows/ci.yaml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7fd31feb6..0cb29bc02 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,20 @@ jobs: fail-fast: false matrix: python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - os: [ubuntu-latest] + os: ["ubuntu-latest", "ubuntu-20.04"] + exclude: + - os: ubuntu-20.04 + python-version: "3.7" + - os: ubuntu-20.04 + python-version: "3.8" + - os: ubuntu-20.04 + python-version: "3.9" + - os: ubuntu-20.04 + python-version: "3.10" + - os: ubuntu-20.04 + python-version: "3.11" + - os: ubuntu-20.04 + python-version: "3.12" steps: - uses: actions/checkout@v4 @@ -36,9 +49,9 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f qa/requirements.txt ]; then pip install -r qa/requirements.txt; fi + python -m pip install --no-cache-dir --upgrade pip + if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi + if [ -f qa/requirements.txt ]; then pip install --no-cache-dir -r qa/requirements.txt; fi - name: Lint with flake8 run: |