From abf2d014cc0aec4d6dff086defb56dcc3d328393 Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Mon, 7 Nov 2022 18:48:26 +0100 Subject: [PATCH] add/update workflows --- .github/workflows/CompatHelper.yml | 16 +++++++++++++ .github/workflows/TagBot.yml | 10 +++++++-- .github/workflows/{runtests.yml => ci.yml} | 26 +++++++++++++--------- 3 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/CompatHelper.yml rename .github/workflows/{runtests.yml => ci.yml} (62%) diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 0000000..bcdb51a --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper +on: + schedule: + - cron: '00 00 * * *' + workflow_dispatch: +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} # optional + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index d77d3a0..33fd52d 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -1,11 +1,17 @@ name: TagBot on: - schedule: - - cron: 0 * * * * + issue_comment: # THIS BIT IS NEW + types: + - created + workflow_dispatch: jobs: TagBot: + # THIS 'if' LINE IS NEW + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + # NOTHING BELOW HAS CHANGED runs-on: ubuntu-latest steps: - uses: JuliaRegistries/TagBot@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + # ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/runtests.yml b/.github/workflows/ci.yml similarity index 62% rename from .github/workflows/runtests.yml rename to .github/workflows/ci.yml index bd20140..db65c50 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,6 @@ name: CI on: - push: - branches: - - master - pull_request: - branches: - - master + - pull_request jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} @@ -13,22 +8,32 @@ jobs: strategy: matrix: version: - - '1.3' - - '1.5' + - '1.6' + - '1' - 'nightly' os: - ubuntu-latest - - macOS-latest arch: - x64 + allow_failures: + - julia: nightly fail-fast: false - steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest - uses: julia-actions/julia-processcoverage@v1 @@ -38,4 +43,3 @@ jobs: flags: unittests name: codecov-umbrella fail_ci_if_error: false - token: ${{ secrets.CODECOV_TOKEN }}