Skip to content

Commit aeab159

Browse files
Merge pull request #5 from kishaningithub/refactor-test-suite
Simplify test suite
2 parents aa230cc + 8f37ead commit aeab159

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,47 +45,32 @@ jobs:
4545
python --version 2>&1 | grep -F "${{ matrix.python-version }}"
4646
test "$(python3 -m pip --version)" = "$(pip --version)"
4747
48-
test_major_version_installation:
49-
runs-on: ubuntu-latest
50-
container: amazonlinux:2023
51-
steps:
52-
- name: Setup runner
53-
run: |
54-
yum install -y git tar gzip sudo
55-
56-
- uses: actions/checkout@v3
57-
58-
- name: Install python
59-
uses: ./
60-
with:
61-
python-version: "3"
62-
63-
- name: Test installation
64-
run: |
65-
set -x
66-
67-
python3 --version 2>&1 | grep -F "3.12.0"
68-
69-
test_minor_version_installation:
48+
test_abstract_version_specification:
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
include:
53+
- python-version: "3"
54+
installed-python-version: "3.12.0"
55+
- python-version: "3.9"
56+
installed-python-version: "3.9.18"
7057
runs-on: ubuntu-latest
7158
container: amazonlinux:2023
7259
steps:
7360
- name: Setup runner
74-
run: |
75-
yum install -y git tar gzip sudo
61+
run: yum install -y git tar gzip sudo
7662

7763
- uses: actions/checkout@v3
7864

7965
- name: Install python
8066
uses: ./
8167
with:
82-
python-version: "3.9"
68+
python-version: "${{ matrix.python-version }}"
8369

8470
- name: Test installation
8571
run: |
8672
set -x
87-
88-
python3 --version 2>&1 | grep -F "3.9.18"
73+
python3 --version 2>&1 | grep -F "${{ matrix.installed-python-version }}"
8974
9075
test_pip_installs:
9176
strategy:

0 commit comments

Comments
 (0)