Skip to content

Commit 56238e6

Browse files
authored
Merge branch 'main' into ml/grads
2 parents ce56621 + 7586f52 commit 56238e6

5 files changed

Lines changed: 52 additions & 1039 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
4+
branches: [main]
65
tags: '*'
76
pull_request:
8-
branches:
9-
- main
7+
branches: [main]
108
concurrency:
119
# Skip intermediate builds: always.
1210
# Cancel intermediate builds: only if it is a pull request build.
1311
group: ${{ github.workflow }}-${{ github.ref }}
1412
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1513
jobs:
1614
test:
17-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
1816
runs-on: ${{ matrix.os }}
1917
strategy:
2018
fail-fast: false
@@ -27,14 +25,11 @@ jobs:
2725
- ubuntu-latest
2826
- macOS-latest
2927
- windows-latest
30-
arch:
31-
- default
3228
steps:
3329
- uses: actions/checkout@v7
3430
- uses: julia-actions/setup-julia@v3
3531
with:
3632
version: ${{ matrix.version }}
37-
arch: ${{ matrix.arch }}
3833
- uses: julia-actions/cache@v3
3934
- uses: julia-actions/julia-buildpkg@v1
4035
- uses: julia-actions/julia-runtest@v1
@@ -51,25 +46,11 @@ jobs:
5146
- uses: julia-actions/setup-julia@v3
5247
with:
5348
version: '1'
49+
- uses: julia-actions/cache@v3
5450
- uses: julia-actions/julia-buildpkg@v1
55-
- run: julia -e 'using Pkg; Pkg.add("Aqua")'
56-
- run: julia --project=@. -e 'using Aqua, PSFModels; Aqua.test_all(PSFModels, ambiguities=false)'
57-
docs:
58-
name: Documentation
59-
runs-on: ubuntu-latest
60-
steps:
61-
- uses: actions/checkout@v7
62-
- uses: julia-actions/setup-julia@v3
63-
with:
64-
version: '1'
65-
- run: |
66-
julia --project=docs -e '
67-
using Pkg
68-
Pkg.develop(PackageSpec(path=pwd()))
69-
Pkg.instantiate()'
70-
- run: julia --project=docs docs/make.jl
71-
env:
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
74-
GKSwstype: "100" # fix GKS socket error for plots made in @example blocks
75-
DATADEPS_ALWAYS_ACCEPT: true
51+
- name: Install Aqua
52+
shell: julia --color=yes {0}
53+
run: using Pkg; Pkg.add("Aqua")
54+
- name: Run Aqua tests
55+
shell: julia --project=@. --color=yes {0}
56+
run: 'using Aqua, PSFModels; Aqua.test_all(PSFModels, ambiguities=false)'

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches: [main]
5+
tags: '*'
6+
pull_request:
7+
branches: [main]
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
jobs:
14+
docs:
15+
name: Documentation
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v7
19+
- uses: julia-actions/setup-julia@v3
20+
with:
21+
version: '1'
22+
- uses: julia-actions/cache@v3
23+
- name: Set up environment
24+
shell: julia --color=yes --project=docs {0}
25+
run: using Pkg; Pkg.instantiate()
26+
- name: Build and deploy documentation
27+
run: julia --color=yes --project=docs docs/make.jl
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
31+
GKSwstype: "100" # fix GKS socket error for plots made in @example blocks
32+
DATADEPS_ALWAYS_ACCEPT: true

.github/workflows/preview-cleanup.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ jobs:
1313
with:
1414
ref: gh-pages
1515

16-
- name: Delete preview and history
16+
- name: Configure Git
1717
run: |
1818
git config user.name "Documenter.jl"
1919
git config user.email "documenter@juliadocs.github.io"
20+
21+
- name: Delete preview and history
22+
run: |
2023
git rm -rf "previews/PR$PRNUM"
2124
git commit -m "delete preview"
2225
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
2326
env:
2427
PRNUM: ${{ github.event.number }}
2528

2629
- name: Push changes
27-
run: |
28-
git push --force origin gh-pages-new:gh-pages
30+
run: git push --force origin gh-pages-new:gh-pages

0 commit comments

Comments
 (0)