From 743d28330f1cfa1591ac9f84ed60652f2608b3a4 Mon Sep 17 00:00:00 2001 From: 162348 Date: Sun, 20 Oct 2024 11:03:36 +0900 Subject: [PATCH] added CODECOV_TOKEN --- .github/workflows/CI.yml | 10 ++++++++-- .github/workflows/DocCleanup.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/codecov.yml | 2 ++ .github/workflows/documentation.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 +- 5 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/DocCleanup.yml create mode 100644 .github/workflows/codecov.yml create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1066119..01cc0bb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,8 +27,14 @@ jobs: - 'pre' os: - ubuntu-latest + - macOS-latest + - windows-latest arch: + - x86 - x64 + exclude: + - os: macOS-latest + arch: x86 steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 @@ -36,8 +42,8 @@ jobs: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - uses: julia-actions/cache@v2 - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@latest - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v4 with: diff --git a/.github/workflows/DocCleanup.yml b/.github/workflows/DocCleanup.yml new file mode 100644 index 0000000..83ba2a8 --- /dev/null +++ b/.github/workflows/DocCleanup.yml @@ -0,0 +1,28 @@ +name: Doc Preview Cleanup + +on: + pull_request: + types: [closed] + +jobs: + doc-preview-cleanup: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout gh-pages branch + uses: actions/checkout@v3 + with: + ref: gh-pages + - name: Delete preview and history + push changes + run: | + if [ -d "previews/PR$PRNUM" ]; then + git config user.name "Documenter.jl" + git config user.email "documenter@juliadocs.github.io" + git rm -rf "previews/PR$PRNUM" + 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 + fi + env: + PRNUM: ${{ github.event.number }} diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..f6f7bb0 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,2 @@ +codecov: + require_ci_to_pass: false \ No newline at end of file diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..44c9669 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,29 @@ +name: Documentation + +on: + push: + branches: + - master + tags: '*' + pull_request: + +jobs: + build: + permissions: + contents: write + statuses: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - name: Install dependencies + run: julia --project=docs/ -e ' + using Pkg; + Pkg.develop(PackageSpec(path=pwd())); + Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: julia --project=docs/ docs/make.jl \ No newline at end of file diff --git a/README.md b/README.md index f353fbd..c9ff9ff 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Currently, only Zig-Zag samplers are implemented. ## Installation -`julia >= 1.11` is required, due to `Random.jl` compatibility issues. +Currently, `julia >= 1.11` is required, due to `Random.jl` compatibility issues. ## Examples