Skip to content

Commit 0df9d9f

Browse files
committed
Clean up
1 parent ed95f63 commit 0df9d9f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/install-pypi.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
jobs:
1919
test-pypi-install:
20-
name: Test PyPI install ${{ matrix.install-target }} ${{ matrix.pip-install-flags }} (${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.toolchain }})
20+
name: Test PyPI install ${{ matrix.install-target }} ${{ matrix.pip-install-flags }} (${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.compiler }}-${{ matrix.compiler-version }})
2121
runs-on: "${{ matrix.os }}"
2222
strategy:
2323
fail-fast: false
@@ -29,31 +29,37 @@ jobs:
2929
install-target: [ "example-fgen-basic", "example-fgen-basic[locked]" ]
3030
pip-install-flags: [ "--only-binary example-fgen-basic" ]
3131
toolchain: [ "no-toolchain" ]
32+
compiler: [ "no-compiler-needed" ]
33+
compiler-version: [ "na" ]
3234
include:
3335
# Source installs on all OS for a stable Python version
34-
# (no need to do more than this)
35-
# (duplicated as I can't see how to write this more succintly)
36+
# (no need to do more than the combinations below)
37+
# (duplicated the config as I can't see how to write this more succintly
38+
# using gitlab's matrix logic)
3639
- os: "ubuntu-latest"
3740
python-version: "3.11"
3841
install-target: "example-fgen-basic"
3942
pip-install-flags: "--no-binary example-fgen-basic"
4043
# TODO: consider adding other compilers
4144
# (see https://github.com/fortran-lang/setup-fortran)
42-
toolchain: { compiler: gcc, version: 13 }
45+
compiler: "gcc"
46+
compiler-version: "13"
4347
- os: "macos-latest"
4448
python-version: "3.11"
4549
install-target: "example-fgen-basic"
4650
pip-install-flags: "--no-binary example-fgen-basic"
4751
# TODO: consider adding other compilers
4852
# (see https://github.com/fortran-lang/setup-fortran)
49-
toolchain: { compiler: gcc, version: 13 }
53+
compiler: "gcc"
54+
compiler-version: "13"
5055
- os: "windows-latest"
5156
python-version: "3.11"
5257
install-target: "example-fgen-basic"
5358
pip-install-flags: "--no-binary example-fgen-basic"
5459
# TODO: consider adding other compilers
5560
# (see https://github.com/fortran-lang/setup-fortran)
56-
toolchain: { compiler: gcc, version: 13 }
61+
compiler: "gcc"
62+
compiler-version: "13"
5763

5864
steps:
5965
- name: Set up Python "${{ matrix.python-version }}"
@@ -67,8 +73,8 @@ jobs:
6773
uses: fortran-lang/setup-fortran@v1
6874
id: setup-fortran
6975
with:
70-
compiler: ${{ matrix.toolchain.compiler }}
71-
version: ${{ matrix.toolchain.version }}
76+
compiler: ${{ matrix.compiler }}
77+
version: ${{ matrix.compiler-version }}
7278
- name: Install
7379
run: |
7480
pip install --upgrade pip wheel

0 commit comments

Comments
 (0)