Skip to content

Commit

Permalink
small update to github actions and add codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
brucala committed Jun 29, 2023
1 parent 2551c19 commit 9cf6bc6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Documentation

on:
push:
branches:
- main
tags: '*'
branches: [main]
tags: ['*']
pull_request:

jobs:
Expand All @@ -13,13 +12,13 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
version: '1' # latest release
- 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 }} # If authenticating with GitHub Actions token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=docs/ docs/make.jl
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: ['1', '1.6']

julia-version:
- '1' # latest release
- '1.6' # LTS
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
#- uses: julia-actions/julia-processcoverage@v1
#- uses: codecov/codecov-action@v1
# with:
# file: lcov.info
- uses: julia-actions/julia-buildpkg@v2
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info

0 comments on commit 9cf6bc6

Please sign in to comment.