|
| 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 }} |
0 commit comments