From 8f37ead11c6e7ddfcb90f47fbdba8c08f3df190b Mon Sep 17 00:00:00 2001 From: Kishan B Date: Wed, 8 Nov 2023 10:08:26 +0530 Subject: [PATCH] Simplify test suite --- .github/workflows/test.yml | 39 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dd373c7..6561680 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,47 +45,32 @@ jobs: python --version 2>&1 | grep -F "${{ matrix.python-version }}" test "$(python3 -m pip --version)" = "$(pip --version)" - test_major_version_installation: - runs-on: ubuntu-latest - container: amazonlinux:2023 - steps: - - name: Setup runner - run: | - yum install -y git tar gzip sudo - - - uses: actions/checkout@v3 - - - name: Install python - uses: ./ - with: - python-version: "3" - - - name: Test installation - run: | - set -x - - python3 --version 2>&1 | grep -F "3.12.0" - - test_minor_version_installation: + test_abstract_version_specification: + strategy: + fail-fast: false + matrix: + include: + - python-version: "3" + installed-python-version: "3.12.0" + - python-version: "3.9" + installed-python-version: "3.9.18" runs-on: ubuntu-latest container: amazonlinux:2023 steps: - name: Setup runner - run: | - yum install -y git tar gzip sudo + run: yum install -y git tar gzip sudo - uses: actions/checkout@v3 - name: Install python uses: ./ with: - python-version: "3.9" + python-version: "${{ matrix.python-version }}" - name: Test installation run: | set -x - - python3 --version 2>&1 | grep -F "3.9.18" + python3 --version 2>&1 | grep -F "${{ matrix.installed-python-version }}" test_pip_installs: strategy: