Skip to content

Commit d9dd388

Browse files
committed
Update ci_pipeline.yml
1 parent 0108034 commit d9dd388

File tree

1 file changed

+135
-135
lines changed

1 file changed

+135
-135
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 135 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -35,139 +35,139 @@ jobs:
3535
--form "variables[TEST]=true" \
3636
"https://gitlab.hzdr.de/api/v4/projects/6200/trigger/pipeline"
3737
38-
lint:
39-
runs-on: ubuntu-latest
40-
41-
env:
42-
YML: 'etc/environment-lint.yml'
43-
44-
defaults:
45-
run:
46-
shell: bash -l {0}
47-
48-
steps:
49-
- name: Checkout
50-
uses: actions/checkout@v1
51-
52-
- name: Install Conda environment with Micromamba
53-
uses: mamba-org/provision-with-micromamba@main
54-
with:
55-
environment-file: ${{ env.YML }}
56-
57-
- name: Code reformatting with black
58-
run: |
59-
black pySDC --check --diff --color
60-
61-
- name: Linting with flakeheaven
62-
run: |
63-
flakeheaven lint --benchmark pySDC
64-
65-
66-
spawn_gitlab_and_postprocess:
67-
runs-on: ubuntu-latest
68-
69-
# needs:
70-
# - lint
71-
72-
defaults:
73-
run:
74-
shell: bash -l {0}
75-
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
79-
steps:
80-
- name: Checkout
81-
uses: actions/checkout@v3
82-
with:
83-
fetch-depth: 0
84-
ref: ${{ github.event.pull_request.head.sha }}
85-
86-
- name: Checkout benchmark repository
87-
uses: actions/checkout@v3
88-
if: ${{ github.event_name == 'push' }}
89-
with:
90-
repository: Parallel-in-Time/pySDC-benchmarks
91-
token: ${{ secrets.BENCHMARK_BOT }}
92-
path: bench
93-
ref: main
94-
95-
- name: Install Conda environment with Micromamba
96-
uses: mamba-org/provision-with-micromamba@main
97-
with:
98-
environment-file: etc/environment-base.yml
99-
100-
- name: Mirror + trigger CI
101-
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
102-
with:
103-
args: "https://gitlab.hzdr.de/r.speck/pysdc"
104-
env:
105-
FORCE_PUSH: "true"
106-
GITLAB_HOSTNAME: "gitlab.hzdr.de"
107-
GITLAB_USERNAME: ${{ secrets.GITLAB_SECRET_USER }}
108-
GITLAB_PASSWORD: ${{ secrets.GITLAB_SECRET_PASS }}
109-
GITLAB_PROJECT_ID: "3525"
110-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111-
112-
- name: Get and prepare artifacts
113-
run: |
114-
pipeline_id=$(curl --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_SECRET_H }}" --silent "https://gitlab.hzdr.de/api/v4/projects/3525/repository/commits/${{ github.head_ref || github.ref_name }}" | jq '.last_pipeline.id')
115-
job_id=$(curl --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_SECRET_H }}" --silent "https://gitlab.hzdr.de/api/v4/projects/3525/pipelines/$pipeline_id/jobs" | jq '.[] | select( .name == "bundle" ) | select( .status == "success" ) | .id')
116-
curl --output artifacts.zip "https://gitlab.hzdr.de/api/v4/projects/3525/jobs/$job_id/artifacts"
117-
rm -rf data
118-
unzip artifacts.zip
119-
120-
- name: Generate Coverage badge
121-
run: |
122-
pip install genbadge[all]
123-
genbadge coverage -i coverage.xml -o htmlcov/coverage-badge.svg
124-
125-
- name: Generate benchmark report
126-
uses: pancetta/github-action-benchmark@v1
127-
if: ${{ (!contains(github.event.head_commit.message, '[CI-no-benchmarks]')) && (github.event_name == 'push') }}
128-
with:
129-
name: pySDC Benchmark with pytest-benchmark
130-
tool: 'pytest'
131-
output-file-path: benchmarks/output.json
132-
auto-push: false
133-
skip-fetch-gh-pages: true
134-
benchmark-data-dir-path: bench/${{ github.head_ref || github.ref_name }}
135-
github-token: ${{ secrets.GITHUB_TOKEN }}
136-
137-
- name: Push benchmark data
138-
uses: dmnemec/copy_file_to_another_repo_action@main
139-
if: "!contains(github.event.head_commit.message, '[CI-no-benchmarks]')"
140-
env:
141-
API_TOKEN_GITHUB: ${{ secrets.BENCHMARK_BOT }}
142-
with:
143-
source_file: 'bench/${{ github.head_ref || github.ref_name }}'
144-
destination_repo: 'Parallel-in-Time/pySDC-benchmarks'
145-
user_email: '[email protected]'
146-
user_name: 'pancetta'
147-
148-
- name: Build html I
149-
run: |
150-
chmod u+x ./docs/update_apidocs.sh
151-
./docs/update_apidocs.sh
152-
sphinx-build -b html docs/source docs/build/html
153-
mkdir -p docs/build/html/coverage
154-
mv htmlcov/* docs/build/html/coverage/.
155-
156-
- name: Build html II
157-
if: "!contains(github.event.head_commit.message, '[CI-no-benchmarks]')"
158-
run: |
159-
mkdir -p docs/build/html/benchmarks
160-
cp -r bench/${{ github.head_ref || github.ref_name }}/* docs/build/html/benchmarks/.
161-
162-
- name: Store docs
163-
uses: actions/upload-artifact@v2
164-
with:
165-
name: docs
166-
path: docs/build/html
167-
168-
# - name: Deploy 🚀
169-
# uses: JamesIves/[email protected]
170-
# if: ${{ github.event_name == 'push' && github.repository_owner == 'Parallel-in-Time' && github.ref == 'refs/heads/master' && !env.ACT }}
38+
# lint:
39+
# runs-on: ubuntu-latest
40+
#
41+
# env:
42+
# YML: 'etc/environment-lint.yml'
43+
#
44+
# defaults:
45+
# run:
46+
# shell: bash -l {0}
47+
#
48+
# steps:
49+
# - name: Checkout
50+
# uses: actions/checkout@v1
51+
#
52+
# - name: Install Conda environment with Micromamba
53+
# uses: mamba-org/provision-with-micromamba@main
54+
# with:
55+
# environment-file: ${{ env.YML }}
56+
#
57+
# - name: Code reformatting with black
58+
# run: |
59+
# black pySDC --check --diff --color
60+
#
61+
# - name: Linting with flakeheaven
62+
# run: |
63+
# flakeheaven lint --benchmark pySDC
64+
#
65+
#
66+
# spawn_gitlab_and_postprocess:
67+
# runs-on: ubuntu-latest
68+
#
69+
## needs:
70+
## - lint
71+
#
72+
# defaults:
73+
# run:
74+
# shell: bash -l {0}
75+
#
76+
# env:
77+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
#
79+
# steps:
80+
# - name: Checkout
81+
# uses: actions/checkout@v3
82+
# with:
83+
# fetch-depth: 0
84+
# ref: ${{ github.event.pull_request.head.sha }}
85+
#
86+
# - name: Checkout benchmark repository
87+
# uses: actions/checkout@v3
88+
# if: ${{ github.event_name == 'push' }}
89+
# with:
90+
# repository: Parallel-in-Time/pySDC-benchmarks
91+
# token: ${{ secrets.BENCHMARK_BOT }}
92+
# path: bench
93+
# ref: main
94+
#
95+
# - name: Install Conda environment with Micromamba
96+
# uses: mamba-org/provision-with-micromamba@main
97+
# with:
98+
# environment-file: etc/environment-base.yml
99+
#
100+
# - name: Mirror + trigger CI
101+
# uses: SvanBoxel/gitlab-mirror-and-ci-action@master
102+
# with:
103+
# args: "https://gitlab.hzdr.de/r.speck/pysdc"
104+
# env:
105+
# FORCE_PUSH: "true"
106+
# GITLAB_HOSTNAME: "gitlab.hzdr.de"
107+
# GITLAB_USERNAME: ${{ secrets.GITLAB_SECRET_USER }}
108+
# GITLAB_PASSWORD: ${{ secrets.GITLAB_SECRET_PASS }}
109+
# GITLAB_PROJECT_ID: "3525"
110+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111+
#
112+
# - name: Get and prepare artifacts
113+
# run: |
114+
# pipeline_id=$(curl --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_SECRET_H }}" --silent "https://gitlab.hzdr.de/api/v4/projects/3525/repository/commits/${{ github.head_ref || github.ref_name }}" | jq '.last_pipeline.id')
115+
# job_id=$(curl --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_SECRET_H }}" --silent "https://gitlab.hzdr.de/api/v4/projects/3525/pipelines/$pipeline_id/jobs" | jq '.[] | select( .name == "bundle" ) | select( .status == "success" ) | .id')
116+
# curl --output artifacts.zip "https://gitlab.hzdr.de/api/v4/projects/3525/jobs/$job_id/artifacts"
117+
# rm -rf data
118+
# unzip artifacts.zip
119+
#
120+
# - name: Generate Coverage badge
121+
# run: |
122+
# pip install genbadge[all]
123+
# genbadge coverage -i coverage.xml -o htmlcov/coverage-badge.svg
124+
#
125+
# - name: Generate benchmark report
126+
# uses: pancetta/github-action-benchmark@v1
127+
# if: ${{ (!contains(github.event.head_commit.message, '[CI-no-benchmarks]')) && (github.event_name == 'push') }}
128+
# with:
129+
# name: pySDC Benchmark with pytest-benchmark
130+
# tool: 'pytest'
131+
# output-file-path: benchmarks/output.json
132+
# auto-push: false
133+
# skip-fetch-gh-pages: true
134+
# benchmark-data-dir-path: bench/${{ github.head_ref || github.ref_name }}
135+
# github-token: ${{ secrets.GITHUB_TOKEN }}
136+
#
137+
# - name: Push benchmark data
138+
# uses: dmnemec/copy_file_to_another_repo_action@main
139+
# if: "!contains(github.event.head_commit.message, '[CI-no-benchmarks]')"
140+
# env:
141+
# API_TOKEN_GITHUB: ${{ secrets.BENCHMARK_BOT }}
142+
# with:
143+
# source_file: 'bench/${{ github.head_ref || github.ref_name }}'
144+
# destination_repo: 'Parallel-in-Time/pySDC-benchmarks'
145+
# user_email: '[email protected]'
146+
# user_name: 'pancetta'
147+
#
148+
# - name: Build html I
149+
# run: |
150+
# chmod u+x ./docs/update_apidocs.sh
151+
# ./docs/update_apidocs.sh
152+
# sphinx-build -b html docs/source docs/build/html
153+
# mkdir -p docs/build/html/coverage
154+
# mv htmlcov/* docs/build/html/coverage/.
155+
#
156+
# - name: Build html II
157+
# if: "!contains(github.event.head_commit.message, '[CI-no-benchmarks]')"
158+
# run: |
159+
# mkdir -p docs/build/html/benchmarks
160+
# cp -r bench/${{ github.head_ref || github.ref_name }}/* docs/build/html/benchmarks/.
161+
#
162+
# - name: Store docs
163+
# uses: actions/upload-artifact@v2
171164
# with:
172-
# branch: gh-pages # The branch the action should deploy to.
173-
# folder: docs/build/html # The folder the action should deploy.
165+
# name: docs
166+
# path: docs/build/html
167+
#
168+
## - name: Deploy 🚀
169+
## uses: JamesIves/[email protected]
170+
## if: ${{ github.event_name == 'push' && github.repository_owner == 'Parallel-in-Time' && github.ref == 'refs/heads/master' && !env.ACT }}
171+
## with:
172+
## branch: gh-pages # The branch the action should deploy to.
173+
## folder: docs/build/html # The folder the action should deploy.

0 commit comments

Comments
 (0)