Skip to content

Commit 6b0b721

Browse files
committed
Restructure workflows
1 parent 064deb7 commit 6b0b721

3 files changed

Lines changed: 4 additions & 15 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ on:
1515
default: "nightly"
1616
required: true
1717
type: string
18-
push:
19-
branches:
20-
- main
2118
pull_request:
2219
branches:
2320
- main
@@ -40,8 +37,11 @@ jobs:
4037
- id: docker_tag
4138
run: echo "image=${{ inputs.tag || env.DEFAULT_TAG }}" >> $GITHUB_OUTPUT
4239

40+
test-code:
41+
uses: ./.github/workflows/test_package.yml
42+
4343
build-docs:
44-
needs: get_image_tag
44+
needs: [get_image_tag, test-code]
4545
runs-on: ubuntu-latest
4646
container: ghcr.io/fenics/dolfinx/dolfinx:${{ needs.get_image_tag.outputs.image }}
4747

.github/workflows/deploy_pages.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ jobs:
3939
name: docs
4040
path: "./public"
4141

42-
- name: Download docs artifact
43-
# docs artifact is uploaded by build-docs job
44-
uses: actions/download-artifact@v7
45-
with:
46-
name: code-coverage-report
47-
path: "./public/code-coverage-report"
4842

4943
- name: Upload artifact
5044
uses: actions/upload-pages-artifact@v4

.github/workflows/test_package.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ on:
1616
required: true
1717
type: string
1818

19-
pull_request:
20-
branches:
21-
- main
22-
schedule:
23-
- cron: "0 8 * * *"
2419

2520
env:
2621
DEB_PYTHON_INSTALL_LAYOUT: deb_system

0 commit comments

Comments
 (0)