From 19e854977c3fc58bba3c5ec16a77d14ac2caed09 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Thu, 3 Nov 2022 12:38:47 -0700 Subject: [PATCH] Fiddle with CI a bit (#63) * Fiddle with CI a bit Codecov didn't report a status in a recent PR even though their website shows they received the coverage information. Codecov doesn't require a token to be passed for public repositories but we're passing one anyway so I'm deleting it and seeing what happens. While I'm touching that file, I also simplified the artifact caching to use a Julia-specific GitHub Action that handles all of that. Lastly, I deleted the Codecov YAML file that just tells it not to comment. Comments are fine, who cares. * Try putting back the token? I gave it a real one * Bump `codecov-action` to v3 * Stuff --- .codecov.yml | 1 - .github/workflows/ci.yml | 33 ++++++++++++++------------------ .github/workflows/documenter.yml | 19 ------------------ README.md | 2 +- 4 files changed, 15 insertions(+), 40 deletions(-) delete mode 100644 .codecov.yml delete mode 100644 .github/workflows/documenter.yml diff --git a/.codecov.yml b/.codecov.yml deleted file mode 100644 index db24720..0000000 --- a/.codecov.yml +++ /dev/null @@ -1 +0,0 @@ -comment: off diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3febc2e..8a8b63c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,15 +1,9 @@ name: CI on: push: - paths-ignore: - - 'README.md' - branches: - - master + branches: [main] + tags: ["*"] pull_request: - paths-ignore: - - 'README.md' - branches: - - master jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} @@ -31,20 +25,21 @@ 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/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: lcov.info + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-docdeploy@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/documenter.yml b/.github/workflows/documenter.yml deleted file mode 100644 index fee410d..0000000 --- a/.github/workflows/documenter.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Documenter -on: - push: - branches: [master] - tags: [v*] - pull_request: - branches: - - master -jobs: - Documenter: - name: Documentation - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-docdeploy@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/README.md b/README.md index 40cc6d2..1c5d25e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # EDF.jl [![CI](https://github.com/beacon-biosignals/EDF.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/beacon-biosignals/EDF.jl/actions/workflows/ci.yml) -[![codecov](https://codecov.io/gh/beacon-biosignals/EDF.jl/branch/master/graph/badge.svg?token=E8vy5nZtJF)](https://codecov.io/gh/beacon-biosignals/EDF.jl) +[![codecov](https://codecov.io/gh/beacon-biosignals/EDF.jl/branch/main/graph/badge.svg?token=E8vy5nZtJF)](https://codecov.io/gh/beacon-biosignals/EDF.jl) [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://beacon-biosignals.github.io/EDF.jl/stable) [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://beacon-biosignals.github.io/EDF.jl/dev)