Skip to content

Commit 92c5398

Browse files
committed
Try to publish separately
1 parent 18433e4 commit 92c5398

2 files changed

Lines changed: 51 additions & 29 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright (c) 2020 The University of Manchester
2+
#
3+
# This program is free software: you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation, either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+
# This workflow will install Python dependencies, run tests, lint and rat with a variety of Python versions
17+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
18+
19+
name: Self Hosted Tests
20+
21+
on:
22+
workflow_run:
23+
workflows: ["Self Hosted Tests"]
24+
types:
25+
- completed
26+
27+
jobs:
28+
deploy:
29+
runs-on: ubuntu-latest
30+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
steps:
35+
36+
- name: Deploy coverage to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4
39+
40+
- name: Add coverage to comment
41+
uses: peter-evans/commit-comment@v3
42+
with:
43+
body: |
44+
Coverage information deployed to https://spinnakermanchester.github.io/IntegrationTests/${{ steps.extract_branch.outputs.branch }}/
45+
token: ${{ secrets.SPINNAKER_PAT }}

.github/workflows/self_hosted_tests.yml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -436,43 +436,20 @@ jobs:
436436
# echo "$STEPS_CONTEXT" | jq -r 'keys[] as $k | select(.[$k].outcome=="failure") | "\($k): \(.[$k].outcome)"'
437437
# exit 1
438438

439-
- name: Create Coverage HTML
440-
run: |
441-
source pyenv/bin/activate
442-
coverage html -d ${GITHUB_WORKSPACE}/coverage_html
443-
ls -l ${GITHUB_WORKSPACE}/coverage_html
444-
445439
- name: Extract branch name
446440
shell: bash
447441
run: |
448-
ls -l ${GITHUB_WORKSPACE}/coverage_html
449-
ls -l coverage_html
450442
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
451443
id: extract_branch
452444

445+
- name: Create Coverage HTML
446+
run: |
447+
source pyenv/bin/activate
448+
coverage html -d ${GITHUB_WORKSPACE}/coverage_html
449+
ls -l ${GITHUB_WORKSPACE}/coverage_html
450+
453451
- name: Upload static files as artifact
454452
id: deployment
455453
uses: actions/upload-pages-artifact@v3
456454
with:
457455
path: coverage_html
458-
459-
deploy:
460-
needs: integration_tests
461-
runs-on: ubuntu-latest
462-
environment:
463-
name: github-pages
464-
url: ${{ steps.deployment.outputs.page_url }}
465-
steps:
466-
- name: Deploy coverage to GitHub Pages
467-
id: deployment
468-
uses: actions/deploy-pages@v4
469-
with:
470-
token: ${{ secrets.SPINNAKER_PAT }}
471-
472-
- name: Add coverage to comment
473-
uses: peter-evans/commit-comment@v3
474-
with:
475-
body: |
476-
Coverage information deployed to https://spinnakermanchester.github.io/IntegrationTests/${{ steps.extract_branch.outputs.branch }}/
477-
token: ${{ secrets.SPINNAKER_PAT }}
478-

0 commit comments

Comments
 (0)