Skip to content

Commit d675c70

Browse files
committed
Try a different approach
1 parent 2ead24c commit d675c70

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/install-pypi.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,21 @@ jobs:
2727
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
2828
# Check both 'library' install and the 'application' (i.e. locked) install
2929
install-target: ["example-fgen-basic", "example-fgen-basic[locked]"]
30-
toolchain:
31-
# TODO: consider adding other compilers to our matrix
32-
# (see https://github.com/fortran-lang/setup-fortran)
33-
- {compiler: gcc, version: 13}
34-
# # Only seems to be available on Mac for some reason,
35-
# # maybe it will be available when latest images are updated.
36-
# - {compiler: gcc, version: 15}
3730
pip-install-flags: ["--only-binary example-fgen-basic"]
3831
include:
3932
# Source installs on all OS for a stable Python version
4033
# (no need to do more than this)
41-
- pip-install-flags: "--no-binary example-fgen-basic"
34+
- os: ["ubuntu-latest", "macos-latest", "windows-latest"]
4235
python-version: "3.11"
36+
install-target: ["example-fgen-basic", "example-fgen-basic[locked]"]
37+
pip-install-flags: "--no-binary example-fgen-basic"
38+
toolchain:
39+
# TODO: consider adding other compilers to our matrix
40+
# (see https://github.com/fortran-lang/setup-fortran)
41+
- {compiler: gcc, version: 13}
42+
# # Only seems to be available on Mac for some reason,
43+
# # maybe it will be available when latest images are updated.
44+
# - {compiler: gcc, version: 15}
4345

4446
steps:
4547
- name: Set up Python "${{ matrix.python-version }}"
@@ -58,7 +60,7 @@ jobs:
5860
- name: Install
5961
run: |
6062
pip install --upgrade pip wheel
61-
pip install "${{ matrix.install-target }}"
63+
pip install "${{ matrix.install-target }}" ${{ matrix.pip-install-flags }}
6264
- name: Check no warnings
6365
if: matrix.os != 'windows-latest'
6466
run: |

0 commit comments

Comments
 (0)