-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub actions for continuous-integration (#28)
This change replaces GitLab CI/CD config with its GitHub actions counterpart.
- Loading branch information
Showing
8 changed files
with
99 additions
and
104 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Check packaging | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
check-packaging: | ||
name: Build and check the distribution package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install test dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip setuptools | ||
python3 -m pip install tox-gh-actions | ||
- name: Run tox | ||
run: | | ||
tox -e check-packaging |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Static code analysis | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
lint: | ||
name: Perform static analysis of the code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install test dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip setuptools | ||
python3 -m pip install tox-gh-actions | ||
- name: Run tox | ||
run: | | ||
tox -e lint |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish source tarball to PyPi | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
build-n-publish: | ||
name: Build and publish the release on PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
- name: Build a source tarball | ||
run: | | ||
python setup.py sdist | ||
- name: Publish distribution package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Test the contribution | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
apt_options: -o Acquire::Retries=3 | ||
PETSC_DIR: /usr/lib/petscdir/petsc3.15/x86_64-linux-gnu-real | ||
jobs: | ||
test: | ||
name: Build and test the contribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup MPI | ||
uses: mpi4py/setup-mpi@v1 | ||
with: | ||
mpi: openmpi | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install system packages | ||
run: | | ||
sudo apt-get ${{env.apt_options}} update -y | ||
sudo apt-get ${{env.apt_options}} install python3-petsc4py python3-mpi4py libopenmpi-dev libpetsc-real3.15-dev | ||
- name: Install test dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
python -m pip install tox-gh-actions | ||
- name: Run tox | ||
run: tox | ||
env: | ||
PYTHONPATH: ${{env.PETSC_DIR}}/lib/python3/dist-packages |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
"h5py", | ||
"networkx", | ||
"morphio", | ||
"mpi4py", | ||
"vascpy", | ||
"matplotlib", | ||
"seaborn", | ||
|
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