From 8cfb0bdd202ebf540935a0c3a036d064f30d0674 Mon Sep 17 00:00:00 2001 From: Rob J Goedman Date: Fri, 20 Jan 2023 13:00:20 -0700 Subject: [PATCH] Rel 7.1.0 - Updated CI and Tagbot workflows --- .github/workflows/CI.yml | 47 +++++++++++++++--------------------- .github/workflows/TagBot.yml | 18 +++++++++++++- 2 files changed, 36 insertions(+), 29 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e53eb26..8851c22 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,8 +3,18 @@ name: CI on: push: branches: - - master + - main + tags: ['*'] pull_request: + schedule: + - cron: "0 0 * * *" + +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + env: CMDSTAN: "/home/worker/cmdstan-2.31.0/" @@ -16,15 +26,12 @@ jobs: strategy: matrix: version: - - '1' - - "1.8" - - nightly + - '1.8' + - '1.9' + - 'nightly' os: - ubuntu-latest - #- macOS-latest - #- windows-latest arch: - #- x86 - x64 exclude: - os: windows-latest @@ -59,28 +66,12 @@ jobs: 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/cache@v1 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 env: CMDSTAN: "/home/runner/cmdstan-2.31.0/" - uses: julia-actions/julia-processcoverage@v1 - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 - - uses: codecov/codecov-action@v1 - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 - with: - file: lcov.info - - uses: coverallsapp/github-action@master - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 + - uses: codecov/codecov-action@v2 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: lcov.info + files: lcov.info diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index f49313b..e948a35 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -4,6 +4,22 @@ on: types: - created workflow_dispatch: + inputs: + lookback: + default: 3 +permissions: + actions: read + checks: read + contents: write + deployments: read + issues: read + discussions: read + packages: read + pages: read + pull-requests: read + repository-projects: read + security-events: read + statuses: read jobs: TagBot: if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' @@ -12,4 +28,4 @@ jobs: - uses: JuliaRegistries/TagBot@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - ssh: ${{ secrets.DOCUMENTER_KEY }} + ssh: ${{ secrets.DOCUMENTER_KEY }} \ No newline at end of file