Skip to content

Commit 39911ea

Browse files
authored
Merge pull request #31 from TensorKitchen/format-codebase
Update documentation workflow actions
2 parents f7089d8 + 3f15c8f commit 39911ea

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,31 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
jobs:
20+
run_tests:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
26+
- uses: julia-actions/setup-julia@v3
27+
with:
28+
version: "1"
29+
30+
- uses: julia-actions/cache@v3
31+
32+
- name: Instantiate package environment
33+
run: julia --project=. -e 'using Pkg; Pkg.instantiate()'
34+
35+
- name: Run tests
36+
run: julia --project=. -e 'using Pkg; Pkg.test()'
37+
2038
build:
2139
runs-on: ubuntu-latest
40+
2241
steps:
2342
- uses: actions/checkout@v6
2443

25-
- uses: julia-actions/setup-julia@latest
44+
- uses: julia-actions/setup-julia@v3
2645
with:
2746
version: "1"
2847

@@ -35,23 +54,30 @@ jobs:
3554
run: julia --project=docs docs/make.jl
3655

3756
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
38-
uses: actions/configure-pages@v5
57+
uses: actions/configure-pages@v6
3958

4059
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
41-
uses: actions/upload-pages-artifact@v4
60+
uses: actions/upload-pages-artifact@v5
4261
with:
4362
path: docs/build
4463

4564
deploy:
4665
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
47-
needs: build
66+
67+
needs:
68+
- run_tests
69+
- build
70+
4871
permissions:
4972
pages: write
5073
id-token: write
74+
5175
environment:
5276
name: github-pages
5377
url: ${{ steps.deployment.outputs.page_url }}
78+
5479
runs-on: ubuntu-latest
80+
5581
steps:
5682
- id: deployment
5783
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)