From 4f2302431ae43958330dc364af3a313d9224b401 Mon Sep 17 00:00:00 2001 From: Li Wan Date: Thu, 14 Nov 2024 11:47:17 +1100 Subject: [PATCH 1/4] Run only on ubuntu --- .github/workflows/check_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_requirements.yml b/.github/workflows/check_requirements.yml index 3cea591..6315b8d 100644 --- a/.github/workflows/check_requirements.yml +++ b/.github/workflows/check_requirements.yml @@ -20,7 +20,7 @@ permissions: jobs: tests: name: Run requirements tests on multiple architectures - runs-on: [ubuntu-latest, macos-latest] + runs-on: ubuntu-latest steps: - name: Checkout the repository From 04d2bd0d538ba7fa75990aeabff7feff363586f5 Mon Sep 17 00:00:00 2001 From: Li Wan Date: Thu, 14 Nov 2024 11:51:39 +1100 Subject: [PATCH 2/4] Run only on ubuntu --- .github/workflows/check_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_requirements.yml b/.github/workflows/check_requirements.yml index 6315b8d..fef6eb9 100644 --- a/.github/workflows/check_requirements.yml +++ b/.github/workflows/check_requirements.yml @@ -20,7 +20,7 @@ permissions: jobs: tests: name: Run requirements tests on multiple architectures - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout the repository From 509581a3d585be9779ffcb91c61d550a75a814ba Mon Sep 17 00:00:00 2001 From: Li Wan Date: Thu, 14 Nov 2024 12:03:34 +1100 Subject: [PATCH 3/4] Use matrix --- .github/workflows/check_requirements.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_requirements.yml b/.github/workflows/check_requirements.yml index fef6eb9..68c9c08 100644 --- a/.github/workflows/check_requirements.yml +++ b/.github/workflows/check_requirements.yml @@ -18,9 +18,11 @@ permissions: contents: read jobs: - tests: - name: Run requirements tests on multiple architectures - runs-on: ubuntu-20.04 + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] steps: - name: Checkout the repository From 9a3da9a49f4d7ff8dc67d839172f87a1546e3ea4 Mon Sep 17 00:00:00 2001 From: Li Wan Date: Thu, 14 Nov 2024 12:06:37 +1100 Subject: [PATCH 4/4] Use matrix --- .github/workflows/check_requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_requirements.yml b/.github/workflows/check_requirements.yml index 68c9c08..3a96806 100644 --- a/.github/workflows/check_requirements.yml +++ b/.github/workflows/check_requirements.yml @@ -36,7 +36,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pip-tools pytest -y + pip install pip-tools pytest - name: Generate requirements-generated.txt run: |