-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add pymake function to add syslibs option for Darwin + gcc toolchain + CLT > 14.*
- Loading branch information
1 parent
3948fab
commit 9251505
Showing
14 changed files
with
10,692 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,13 @@ jobs: | |
pymakeCI-os-intel: | ||
name: pymake CI intel on different OSs | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
FC: intel-classic | ||
FC_V: "2021.7" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-2019] | ||
os: [ubuntu-latest, macos-13, windows-2019] | ||
defaults: | ||
run: | ||
shell: bash | ||
|
@@ -31,53 +34,50 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Intel Fortran Classic | ||
- name: Setup ${{ env.FC }} ${{ env.FC_V }} | ||
uses: fortran-lang/setup-fortran@v1 | ||
with: | ||
compiler: intel-classic | ||
version: "2021.7" | ||
compiler: ${{ env.FC }} | ||
version: ${{ env.FC_V }} | ||
|
||
- name: Setup Graphviz | ||
if: runner.os == 'Linux' | ||
uses: ts-graphviz/setup-graphviz@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- name: Setup pixi | ||
uses: prefix-dev/setup-[email protected] | ||
with: | ||
python-version: "3.12" | ||
pixi-version: v0.19.1 | ||
manifest-path: "pixi.toml" | ||
|
||
- name: Install python packages | ||
- name: pixi post-install | ||
working-directory: pymake | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ".[test]" | ||
pixi run postinstall | ||
- name: Download examples for pytest runs | ||
run: | | ||
.github/common/download-examples.sh | ||
pixi run download-examples | ||
- name: test on Linux | ||
if: runner.os == 'Linux' | ||
working-directory: ./autotest | ||
run: | | ||
pytest -v -n=auto --dist=loadfile -m="base or regression" --durations=0 --cov=pymake --cov-report=xml | ||
pixi run autotest | ||
- name: test on MacOS | ||
if: runner.os == 'macOS' | ||
working-directory: ./autotest | ||
run: | | ||
pytest -v -n=auto --dist=loadfile -m="base" --durations=0 --cov=pymake --cov-report=xml | ||
pixi run autotest-base | ||
- name: test on Windows | ||
if: runner.os == 'Windows' | ||
working-directory: ./autotest | ||
shell: cmd | ||
run: | | ||
pytest -v -m="base" --durations=0 --cov=pymake --cov-report=xml --basetemp=pytest_temp | ||
pixi run autotest-Windows | ||
- name: Print coverage report before upload | ||
working-directory: ./autotest | ||
run: | | ||
coverage report | ||
pixi run coverage-report | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,17 +24,12 @@ jobs: | |
matrix: | ||
include: | ||
# test latest gcc and python | ||
- {os: ubuntu-latest, gcc: 13, python: "3.12"} | ||
- {os: windows-latest, gcc: 13, python: "3.12"} | ||
- {os: macos-latest, gcc: 13, python: "3.12"} | ||
# test latest gcc and previous python | ||
- {os: ubuntu-latest, gcc: 13, python: "3.11"} | ||
- {os: ubuntu-latest, gcc: 13, python: "3.10"} | ||
- {os: ubuntu-latest, gcc: 13, python: 3.9} | ||
- {os: ubuntu-latest, gcc: 13, python: 3.8} | ||
- {os: ubuntu-latest, gcc: 13} | ||
- {os: windows-latest, gcc: 13} | ||
- {os: macos-latest, gcc: 13} | ||
# test latest python and previous gcc | ||
- {os: ubuntu-latest, gcc: 12, python: "3.12"} | ||
- {os: ubuntu-latest, gcc: 11, python: "3.12"} | ||
- {os: ubuntu-latest, gcc: 12} | ||
- {os: ubuntu-latest, gcc: 11} | ||
defaults: | ||
run: | ||
shell: bash | ||
|
@@ -47,15 +42,16 @@ jobs: | |
if: runner.os == 'Linux' | ||
uses: ts-graphviz/setup-graphviz@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- name: Setup pixi | ||
uses: prefix-dev/setup-[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
pixi-version: v0.19.1 | ||
manifest-path: "pixi.toml" | ||
|
||
- name: Install python packages | ||
- name: pixi post-install | ||
working-directory: pymake | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ".[test]" | ||
pixi run postinstall | ||
- name: Setup GNU Fortran | ||
uses: fortran-lang/setup-fortran@main | ||
|
@@ -64,24 +60,27 @@ jobs: | |
version: ${{ matrix.gcc }} | ||
|
||
- name: Download examples for pytest runs | ||
run: .github/common/download-examples.sh | ||
run: | | ||
pixi run download-examples | ||
- name: Install make | ||
if: runner.os == 'Windows' | ||
run: choco install make | ||
|
||
- name: Run pytest | ||
working-directory: ./autotest | ||
- name: Run pytest on Linux and MacOS | ||
if: runner.os != 'Windows' | ||
run: | | ||
markers="base" | ||
if [[ ${{ matrix.gcc }} == 13 ]]; then | ||
markers="base or regression" | ||
fi | ||
pytest -v --dist=loadfile -n=auto --durations=0 --basetemp=pytest_temp --cov=pymake --cov-report=xml --cov-append -m "$markers" | ||
pixi run autotest-base | ||
- name: test on Windows | ||
if: runner.os == 'Windows' | ||
shell: pwsh | ||
run: | | ||
pixi run autotest-Windows | ||
- name: Print coverage report before upload | ||
working-directory: ./autotest | ||
run: coverage report | ||
run: | | ||
pixi run coverage-report | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,22 +20,17 @@ jobs: | |
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
- name: Setup pixi | ||
uses: prefix-dev/setup-[email protected] | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Setup Graphviz | ||
uses: ts-graphviz/setup-graphviz@v2 | ||
|
||
- name: Install packages | ||
run: pip install ".[lint]" | ||
pixi-version: v0.19.1 | ||
manifest-path: "pixi.toml" | ||
|
||
- name: Lint | ||
run: ruff check . | ||
run: pixi run check-lint | ||
|
||
- name: Check format | ||
run: ruff format . --check | ||
run: pixi run check-format | ||
|
||
pymake_setup: | ||
name: standard installation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.