Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pySDC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Fritz
pySDC
Commits
cb54f15d
Commit
cb54f15d
authored
1 year ago
by
Jakob Fritz
Browse files
Options
Downloads
Patches
Plain Diff
Reverted initial changes
so that Github-Actions now should run again
parent
35d87b69
Branches
master
No related tags found
No related merge requests found
Pipeline
#169856
passed
1 year ago
Stage: benchmark
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ci_pipeline.yml
+164
-164
164 additions, 164 deletions
.github/workflows/ci_pipeline.yml
with
164 additions
and
164 deletions
.github/workflows/ci_pipeline.yml
+
164
−
164
View file @
cb54f15d
...
...
@@ -3,8 +3,8 @@ name: CI pipeline for pySDC
on
:
push
:
pull_request
:
#
schedule:
#
- cron: '1 5 * * 1'
schedule
:
-
cron
:
'
1
5
*
*
1'
jobs
:
...
...
@@ -54,119 +54,119 @@ jobs:
GITLAB_PROJECT_ID
:
"
5992"
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
#
user_cpu_tests_linux:
#
runs-on: ubuntu-latest
user_cpu_tests_linux
:
runs-on
:
ubuntu-latest
#
strategy:
#
matrix:
#
python: ['3.7', '3.8', '3.9', '3.10']
#
env: ['base', 'fenics', 'mpi4py', 'petsc']
strategy
:
matrix
:
python
:
[
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
env
:
[
'
base'
,
'
fenics'
,
'
mpi4py'
,
'
petsc'
]
#
defaults:
#
run:
#
shell: bash -l {0}
defaults
:
run
:
shell
:
bash -l {0}
#
steps:
#
- name: Checkout
#
uses: actions/checkout@v3
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
#
- name: Install Conda environment with Micromamba
#
uses: mamba-org/setup-micromamba@v1
#
with:
#
environment-file: "etc/environment-${{ matrix.env }}.yml"
#
create-args: >-
#
python=${{ matrix.python }}
-
name
:
Install Conda environment with Micromamba
uses
:
mamba-org/setup-micromamba@v1
with
:
environment-file
:
"
etc/environment-${{
matrix.env
}}.yml"
create-args
:
>-
python=${{ matrix.python }}
#
- name: Run pytest for CPU stuff
#
run: |
#
echo "print('Loading sitecustomize.py...')
#
import coverage
#
coverage.process_startup() " > sitecustomize.py
#
coverage run -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${{ matrix.env }}
-
name
:
Run pytest for CPU stuff
run
:
|
echo "print('Loading sitecustomize.py...')
import coverage
coverage.process_startup() " > sitecustomize.py
coverage run -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${{ matrix.env }}
#
- name: Make coverage report
#
run: |
#
mv data data_${{ matrix.python }}
#
coverage combine
#
mv .coverage coverage_${{ matrix.env }}_${{ matrix.python }}.dat
-
name
:
Make coverage report
run
:
|
mv data data_${{ matrix.python }}
coverage combine
mv .coverage coverage_${{ matrix.env }}_${{ matrix.python }}.dat
#
- name: Uploading artifacts
#
uses: actions/upload-artifact@v3
#
if: matrix.python == '3.10'
#
with:
#
name: cpu-test-artifacts
#
path: |
#
data_3.10
#
coverage_${{ matrix.env }}_3.10.dat
-
name
:
Uploading artifacts
uses
:
actions/upload-artifact@v3
if
:
matrix.python == '3.10'
with
:
name
:
cpu-test-artifacts
path
:
|
data_3.10
coverage_${{ matrix.env }}_3.10.dat
#
user_libpressio_tests:
#
runs-on: ubuntu-latest
user_libpressio_tests
:
runs-on
:
ubuntu-latest
#
container:
#
image: brownbaerchen/libpressio:amd64_2
#
volumes:
#
- ${{ github.workspace }}:/pySDC
container
:
image
:
brownbaerchen/libpressio:amd64_2
volumes
:
-
${{ github.workspace }}:/pySDC
#
defaults:
#
run:
#
shell: bash -l {0}
defaults
:
run
:
shell
:
bash -l {0}
#
steps:
steps
:
#
- name: Checkout
#
uses: actions/checkout@v3
-
name
:
Checkout
uses
:
actions/checkout@v3
#
- name: Install pySDC and pytest
#
run: |
#
source /pySDC/pySDC/projects/compression/Docker/install_pySDC.sh
-
name
:
Install pySDC and pytest
run
:
|
source /pySDC/pySDC/projects/compression/Docker/install_pySDC.sh
#
- name: Run pytest
#
run: |
#
source /opt/spack/share/spack/setup-env.sh
#
spack load libpressio
-
name
:
Run pytest
run
:
|
source /opt/spack/share/spack/setup-env.sh
spack load libpressio
#
coverage run -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m libpressio
coverage run -m pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m libpressio
#
- name: Make coverage report
#
run: |
#
source /opt/spack/share/spack/setup-env.sh
#
spack load libpressio
-
name
:
Make coverage report
run
:
|
source /opt/spack/share/spack/setup-env.sh
spack load libpressio
#
mv data data_libpressio
#
coverage combine
#
mv .coverage coverage_libpressio_3.10.dat
mv data data_libpressio
coverage combine
mv .coverage coverage_libpressio_3.10.dat
#
- name: Upload artifacts
#
uses: actions/upload-artifact@v3
#
with:
#
name: cpu-test-artifacts
#
path: |
#
data_libpressio
#
coverage_libpressio_3.10.dat
-
name
:
Upload artifacts
uses
:
actions/upload-artifact@v3
with
:
name
:
cpu-test-artifacts
path
:
|
data_libpressio
coverage_libpressio_3.10.dat
#
user_cpu_tests_macos:
#
runs-on: macos-12
user_cpu_tests_macos
:
runs-on
:
macos-12
#
strategy:
#
matrix:
#
env: ['base', 'fenics', 'mpi4py', 'petsc']
strategy
:
matrix
:
env
:
[
'
base'
,
'
fenics'
,
'
mpi4py'
,
'
petsc'
]
#
defaults:
#
run:
#
shell: bash -l {0}
defaults
:
run
:
shell
:
bash -l {0}
#
steps:
#
- name: Checkout
#
uses: actions/checkout@v3
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
#
- name: Install Conda environment with Micromamba
#
uses: mamba-org/setup-micromamba@v1
#
with:
#
environment-file: "etc/environment-${{ matrix.env }}.yml"
-
name
:
Install Conda environment with Micromamba
uses
:
mamba-org/setup-micromamba@v1
with
:
environment-file
:
"
etc/environment-${{
matrix.env
}}.yml"
#
- name: Run pytest for CPU stuff
#
run: |
#
pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${{ matrix.env }}
-
name
:
Run pytest for CPU stuff
run
:
|
pytest --continue-on-collection-errors -v --durations=0 pySDC/tests -m ${{ matrix.env }}
wait_for_gitlab
:
...
...
@@ -203,50 +203,50 @@ jobs:
# ls -ratl
#
post-processing:
#
runs-on: ubuntu-latest
post-processing
:
runs-on
:
ubuntu-latest
#
if: ${{ github.repository_owner == 'Parallel-in-Time'}}
if
:
${{ github.repository_owner == 'Parallel-in-Time'}}
#
needs:
#
- lint
#
- user_cpu_tests_linux
#
- user_libpressio_tests
needs
:
-
lint
-
user_cpu_tests_linux
-
user_libpressio_tests
# - wait_for_gitlab
#
defaults:
#
run:
#
shell: bash -l {0}
defaults
:
run
:
shell
:
bash -l {0}
#
steps:
#
- name: Checkout
#
uses: actions/checkout@v3
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
#
- name: Install Conda environment with Micromamba
#
uses: mamba-org/setup-micromamba@v1
#
with:
#
environment-file: "etc/environment-base.yml"
-
name
:
Install Conda environment with Micromamba
uses
:
mamba-org/setup-micromamba@v1
with
:
environment-file
:
"
etc/environment-base.yml"
#
- name: Downloading artifacts
#
uses: actions/download-artifact@v3
#
with:
#
path: .
-
name
:
Downloading artifacts
uses
:
actions/download-artifact@v3
with
:
path
:
.
#
- name: Prepare artifacts
#
run: |
#
ls -artl cpu-test-artifacts
#
cp cpu-test-artifacts/data_3.10/* data/.
#
python -m coverage combine cpu-test-artifacts/coverage_*_3.10.dat
#
python -m coverage xml
#
python -m coverage html
-
name
:
Prepare artifacts
run
:
|
ls -artl cpu-test-artifacts
cp cpu-test-artifacts/data_3.10/* data/.
python -m coverage combine cpu-test-artifacts/coverage_*_3.10.dat
python -m coverage xml
python -m coverage html
#
- name: Generate Coverage badge
#
run: |
#
pip install genbadge[all]
#
genbadge coverage -i coverage.xml -o htmlcov/coverage-badge.svg
-
name
:
Generate Coverage badge
run
:
|
pip install genbadge[all]
genbadge coverage -i coverage.xml -o htmlcov/coverage-badge.svg
#
- name: Upload coverage reports to Codecov
#
uses: codecov/codecov-action@v3
-
name
:
Upload coverage reports to Codecov
uses
:
codecov/codecov-action@v3
# - name: Generate benchmark report
# uses: pancetta/github-action-benchmark@v1
...
...
@@ -271,13 +271,13 @@ jobs:
# user_email: 'sig.pancetta+github@email.com'
# user_name: 'pancetta'
#
- name: Build html I
#
run: |
#
chmod u+x ./docs/update_apidocs.sh
#
./docs/update_apidocs.sh
#
sphinx-build -b html docs/source docs/build/html
#
mkdir -p docs/build/html/coverage
#
mv htmlcov/* docs/build/html/coverage/.
-
name
:
Build html I
run
:
|
chmod u+x ./docs/update_apidocs.sh
./docs/update_apidocs.sh
sphinx-build -b html docs/source docs/build/html
mkdir -p docs/build/html/coverage
mv htmlcov/* docs/build/html/coverage/.
# - name: Build html II
# if: "!contains(github.event.head_commit.message, '[CI-no-benchmarks]')"
...
...
@@ -285,18 +285,18 @@ jobs:
# mkdir -p docs/build/html/benchmarks
# cp -r bench/${{ github.head_ref || github.ref_name }}/* docs/build/html/benchmarks/.
#
- name: Store docs
#
uses: actions/upload-artifact@v3
#
with:
#
name: docs
#
path: docs/build/html
-
name
:
Store docs
uses
:
actions/upload-artifact@v3
with
:
name
:
docs
path
:
docs/build/html
#
- name: Deploy 🚀
#
uses: JamesIves/github-pages-deploy-action@v4
#
if: ${{ github.event_name == 'push' && github.repository_owner == 'Parallel-in-Time' && github.ref == 'refs/heads/master' }}
#
with:
#
branch: gh-pages # The branch the action should deploy to.
#
folder: docs/build/html # The folder the action should deploy.
-
name
:
Deploy 🚀
uses
:
JamesIves/github-pages-deploy-action@v4
if
:
${{ github.event_name == 'push' && github.repository_owner == 'Parallel-in-Time' && github.ref == 'refs/heads/master' }}
with
:
branch
:
gh-pages
# The branch the action should deploy to.
folder
:
docs/build/html
# The folder the action should deploy.
# spawn_gitlab_and_postprocess:
# runs-on: ubuntu-latest
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment