-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
126 additions
and
477 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 |
---|---|---|
|
@@ -18,128 +18,128 @@ concurrency: | |
|
||
jobs: | ||
|
||
linux-ci: | ||
strategy: | ||
matrix: | ||
include: | ||
- py-version: '3.10' | ||
c-compiler: 'gcc' | ||
cxx-compiler: 'g++' | ||
- py-version: '3.11' | ||
c-compiler: 'gcc' | ||
cxx-compiler: 'g++' | ||
- py-version: '3.12' | ||
c-compiler: 'gcc' | ||
cxx-compiler: 'g++' | ||
- py-version: '3.10' | ||
c-compiler: 'clang' | ||
cxx-compiler: 'clang++' | ||
fail-fast: false | ||
name: Linux ${{ matrix.c-compiler}} Python ${{ matrix.py-version }} | ||
|
||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 180 | ||
env: | ||
MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe" | ||
PYNUCLEUS_BUILD_PARALLELISM: 2 | ||
OMPI_CC: ${{ matrix.c-compiler }} | ||
OMPI_CXX: ${{ matrix.cxx-compiler }} | ||
BUILD_PRETTY_IDENTIFIER: "Linux ${{ matrix.c-compiler }} Python ${{ matrix.py-version }}" | ||
BUILD_IDENTIFIER: "Linux-${{ matrix.c-compiler }}-${{ matrix.py-version }}" | ||
|
||
steps: | ||
- name: Check out repo | ||
if: always() | ||
uses: actions/[email protected] | ||
|
||
- name: Pull ccache cache | ||
if: always() | ||
id: ccache-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: /home/runner/.cache/ccache | ||
key: ccache-${{ env.BUILD_IDENTIFIER }} | ||
|
||
- uses: actions/setup-python@v5 | ||
if: always() | ||
with: | ||
python-version: ${{ matrix.py-version }} | ||
|
||
- name: Install Ubuntu packages | ||
if: always() | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -yq mpi-default-bin mpi-default-dev libmetis-dev libparmetis-dev libsuitesparse-dev ccache | ||
- name: Get ccache config dir | ||
if: always() | ||
run: ccache --show-config | ||
|
||
- name: Install Python dependencies | ||
if: always() | ||
run: make prereq && make prereq-extra | ||
|
||
- name: Install | ||
if: always() | ||
run: python -m pip list && make install PIP_INSTALL_FLAGS="--no-use-pep517 -vvv" | ||
|
||
- name: Remove ccache cache | ||
if: ${{ steps.ccache-restore.outputs.cache-hit }} | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
gh actions-cache delete ccache-${{ env.BUILD_IDENTIFIER }} --confirm | ||
continue-on-error: true | ||
|
||
- name: Push ccache cache | ||
if: always() | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: /home/runner/.cache/ccache | ||
key: ccache-${{ env.BUILD_IDENTIFIER }} | ||
|
||
- name: Ccache report | ||
if: always() | ||
run: ccache -s | ||
|
||
- name: Run tests | ||
if: always() | ||
run: python3 -m pytest --junit-xml=test-results-${{ env.BUILD_IDENTIFIER }}.xml tests/ | ||
|
||
- name: Run flake8 | ||
if: always() | ||
run: | | ||
make flake8 | ||
mv flake8.xml flake8-${{ env.BUILD_IDENTIFIER }}.xml | ||
- name: Run cython-lint | ||
if: always() | ||
run: | | ||
make cython-lint | ||
mv cython-lint.xml cython-lint-${{ env.BUILD_IDENTIFIER }}.xml | ||
- name: Archive results | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: Results (${{ env.BUILD_PRETTY_IDENTIFIER }}) | ||
path: | | ||
test-results-${{ env.BUILD_IDENTIFIER }}.xml | ||
flake8-${{ env.BUILD_IDENTIFIER }}.xml | ||
cython-lint-${{ env.BUILD_IDENTIFIER }}.xml | ||
- name: Report results | ||
uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: Report (${{ env.BUILD_PRETTY_IDENTIFIER }}) | ||
path: | | ||
*-${{ env.BUILD_IDENTIFIER }}.xml | ||
reporter: java-junit | ||
fail-on-error: false | ||
# linux-ci: | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# - py-version: '3.10' | ||
# c-compiler: 'gcc' | ||
# cxx-compiler: 'g++' | ||
# - py-version: '3.11' | ||
# c-compiler: 'gcc' | ||
# cxx-compiler: 'g++' | ||
# - py-version: '3.12' | ||
# c-compiler: 'gcc' | ||
# cxx-compiler: 'g++' | ||
# - py-version: '3.10' | ||
# c-compiler: 'clang' | ||
# cxx-compiler: 'clang++' | ||
# fail-fast: false | ||
# name: Linux ${{ matrix.c-compiler}} Python ${{ matrix.py-version }} | ||
|
||
|
||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 180 | ||
# env: | ||
# MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe" | ||
# PYNUCLEUS_BUILD_PARALLELISM: 2 | ||
# OMPI_CC: ${{ matrix.c-compiler }} | ||
# OMPI_CXX: ${{ matrix.cxx-compiler }} | ||
# BUILD_PRETTY_IDENTIFIER: "Linux ${{ matrix.c-compiler }} Python ${{ matrix.py-version }}" | ||
# BUILD_IDENTIFIER: "Linux-${{ matrix.c-compiler }}-${{ matrix.py-version }}" | ||
|
||
# steps: | ||
# - name: Check out repo | ||
# if: always() | ||
# uses: actions/[email protected] | ||
|
||
# - name: Pull ccache cache | ||
# if: always() | ||
# id: ccache-restore | ||
# uses: actions/cache/restore@v4 | ||
# with: | ||
# path: /home/runner/.cache/ccache | ||
# key: ccache-${{ env.BUILD_IDENTIFIER }} | ||
|
||
# - uses: actions/setup-python@v5 | ||
# if: always() | ||
# with: | ||
# python-version: ${{ matrix.py-version }} | ||
|
||
# - name: Install Ubuntu packages | ||
# if: always() | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -yq mpi-default-bin mpi-default-dev libmetis-dev libparmetis-dev libsuitesparse-dev ccache | ||
|
||
# - name: Get ccache config dir | ||
# if: always() | ||
# run: ccache --show-config | ||
|
||
# - name: Install Python dependencies | ||
# if: always() | ||
# run: make prereq && make prereq-extra | ||
|
||
# - name: Install | ||
# if: always() | ||
# run: python -m pip list && make install PIP_INSTALL_FLAGS="--no-use-pep517 -vvv" | ||
|
||
# - name: Remove ccache cache | ||
# if: ${{ steps.ccache-restore.outputs.cache-hit }} | ||
# shell: bash | ||
# env: | ||
# GH_TOKEN: ${{ github.token }} | ||
# run: | | ||
# gh extension install actions/gh-actions-cache | ||
# gh actions-cache delete ccache-${{ env.BUILD_IDENTIFIER }} --confirm | ||
# continue-on-error: true | ||
|
||
# - name: Push ccache cache | ||
# if: always() | ||
# uses: actions/cache/save@v4 | ||
# with: | ||
# path: /home/runner/.cache/ccache | ||
# key: ccache-${{ env.BUILD_IDENTIFIER }} | ||
|
||
# - name: Ccache report | ||
# if: always() | ||
# run: ccache -s | ||
|
||
# - name: Run tests | ||
# if: always() | ||
# run: python3 -m pytest --junit-xml=test-results-${{ env.BUILD_IDENTIFIER }}.xml tests/ | ||
|
||
# - name: Run flake8 | ||
# if: always() | ||
# run: | | ||
# make flake8 | ||
# mv flake8.xml flake8-${{ env.BUILD_IDENTIFIER }}.xml | ||
|
||
# - name: Run cython-lint | ||
# if: always() | ||
# run: | | ||
# make cython-lint | ||
# mv cython-lint.xml cython-lint-${{ env.BUILD_IDENTIFIER }}.xml | ||
|
||
# - name: Archive results | ||
# uses: actions/upload-artifact@v4 | ||
# if: always() | ||
# with: | ||
# name: Results (${{ env.BUILD_PRETTY_IDENTIFIER }}) | ||
# path: | | ||
# test-results-${{ env.BUILD_IDENTIFIER }}.xml | ||
# flake8-${{ env.BUILD_IDENTIFIER }}.xml | ||
# cython-lint-${{ env.BUILD_IDENTIFIER }}.xml | ||
|
||
# - name: Report results | ||
# uses: dorny/test-reporter@v1 | ||
# if: always() | ||
# with: | ||
# name: Report (${{ env.BUILD_PRETTY_IDENTIFIER }}) | ||
# path: | | ||
# *-${{ env.BUILD_IDENTIFIER }}.xml | ||
# reporter: java-junit | ||
# fail-on-error: false | ||
|
||
mac-ci: | ||
|
||
|
@@ -221,7 +221,10 @@ jobs: | |
|
||
- name: Run tests | ||
if: always() | ||
run: python3 -m pytest --junit-xml=test-results-${{ runner.os }}-${{ matrix.py-version }}.xml tests/ | ||
run: | | ||
# python3 -m pytest -s --log-level=INFO -o log_cli=true -k "testHelmholtz[4-cube]" tests/ | ||
# python3 -m pytest --junit-xml=test-results-${{ runner.os }}-${{ matrix.py-version }}.xml tests/ | ||
mpiexec --allow-run-as-root --oversubscribe -n 4 drivers/runHelmholtz.py --domain cube | ||
- name: Run flake8 | ||
if: always() | ||
|
Oops, something went wrong.