Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/install-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ jobs:
# (see https://github.com/fortran-lang/setup-fortran)
compiler: "gcc"
compiler-version: "13"
exclude:
- os: windows-11-arm
python-version: 3.9
- os: windows-11-arm
python-version: 3.10

steps:
- name: Set up Python "${{ matrix.python-version }}"
Expand All @@ -87,21 +92,21 @@ jobs:
pip install --upgrade pip wheel
pip install "${{ matrix.install-target }}" ${{ matrix.pip-install-flags }}
- name: Check no warnings
if: matrix.os != 'windows-latest'
if: ${{ !(startsWith(matrix.os, 'windows')) }}
run: |
# Install and save stderr to file so we can check for missing target errors
# (re-install is a bit stupid,
# but it doesn't actually do anything except emit the warning in practice)
pip install "${{ matrix.install-target }}" 2>stderr.txt
if grep -q "WARN" stderr.txt; then echo "Warnings in pip install output" && cat stderr.txt && exit 1; else exit 0; fi
- name: Get version non-windows
if: matrix.os != 'windows-latest'
if: ${{ !(startsWith(matrix.os, 'windows')) }}
run: |
INSTALLED_VERSION=`python -c 'import example_fgen_basic; print(f"v{example_fgen_basic.__version__}")'`
echo $INSTALLED_VERSION
echo "INSTALLED_VERSION=$INSTALLED_VERSION" >> $GITHUB_ENV
- name: Get version windows
if: matrix.os == 'windows-latest'
if: ${{ startsWith(matrix.os, 'windows') }}
run: |
chcp 65001 # use utf-8
python -c 'import example_fgen_basic; f = open("version.txt", "w"); f.write(f"INSTALLED_VERSION=v{example_fgen_basic.__version__}"); f.close()'
Expand Down
1 change: 1 addition & 0 deletions changelog/26.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed up test PyPI installation for windows ARM
Loading