-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #587 from JuliaIO/dev
v0.4.53
- Loading branch information
Showing
17 changed files
with
303 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ updates: | |
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "dev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Documenter | ||
on: | ||
push: | ||
branches: [main, master, dev] | ||
tags: [v*] | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
Documenter: | ||
permissions: | ||
contents: write | ||
statuses: write | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/julia-docdeploy@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,28 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
branches: [main, master, dev] | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
branches: [main, master, dev] | ||
tags: '*' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
name: Tests, Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
- '1' | ||
- 'nightly' | ||
os: [ubuntu-latest, windows-latest, macos-latest] # adjust according to need, e.g. os: [ubuntu-latest] if testing only on linux | ||
arch: | ||
- x64 | ||
version: ['min', '1', 'nightly'] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
arch: [x64] | ||
include: | ||
- os: ubuntu-latest | ||
version: '1' | ||
arch: x86 | ||
steps: | ||
# Cancel ongoing CI test runs if pushing to branch again before the previous tests | ||
# have finished | ||
- name: Cancel ongoing test runs for previous commits | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
# Do tests | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
|
@@ -49,31 +37,3 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: lcov.info | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Cancel ongoing documentation build if pushing to branch again before the previous | ||
# build is finished. | ||
- name: Cancel ongoing documentation builds for previous commits | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
# Build docs | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1' | ||
- name: Instantiate and install dependencies | ||
run: | | ||
julia --project=docs -e ' | ||
using Pkg | ||
Pkg.develop(PackageSpec(path=pwd())) | ||
Pkg.instantiate()' | ||
- name: Generate documentation and deploy | ||
env: # needed for pushing to gh-pages branch | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | ||
run: | ||
julia --project=docs docs/make.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Doc Preview Cleanup | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
doc-preview-cleanup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
- uses: julia-actions/setup-julia@v2 | ||
- name: Check for stale PR previews | ||
shell: julia {0} | ||
run: | | ||
using Pkg | ||
pkg"activate --temp" | ||
pkg"add HTTP JSON3" | ||
using HTTP | ||
using JSON3 | ||
using Dates | ||
repo = ENV["GITHUB_REPOSITORY"] | ||
retention_days = 14 | ||
pr_previews = map(filter(startswith("PR"), readdir("previews"))) do dir | ||
parse(Int, match(r"PR(\d*)", dir)[1]) | ||
end | ||
function all_prs() | ||
query_prs(page) = JSON3.read(HTTP.get("https://api.github.com/repos/$repo/pulls?per_page=100;page=$(page)").body) | ||
prs = [] | ||
page = 1 | ||
while true | ||
page_prs = query_prs(page) | ||
isempty(page_prs) && break | ||
append!(prs, page_prs) | ||
page += 1 | ||
end | ||
return prs | ||
end | ||
prs = all_prs() | ||
open_within_threshold = map(x -> x.number, filter(prs) do pr | ||
time = DateTime(pr.updated_at[1:19], ISODateTimeFormat) | ||
return pr.state == "open" && Dates.days(now() - time) <= retention_days | ||
end) | ||
stale_previews = setdiff(pr_previews, open_within_threshold) | ||
@info "Found $(length(stale_previews)) stale previews" | ||
if isempty(stale_previews) | ||
@info "No stale previews" | ||
exit(1) | ||
end | ||
for pr in stale_previews | ||
path = joinpath("previews", "PR$pr") | ||
@info "Removing $path" | ||
run(`git rm -rf $path`) | ||
end | ||
- name: Push changes | ||
run: | | ||
git config user.name "Documenter.jl" | ||
git config user.email "[email protected]" | ||
git commit -m "delete preview" | ||
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) | ||
git push --force origin gh-pages-new:gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b9fdf3e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
b9fdf3e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/114297
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: