Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI script #198

Merged
merged 1 commit into from
Nov 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 13 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
paths-ignore:
- 'LICENSE.md'
- 'LICENSE'
- 'README.md'
branches:
- master
Expand Down Expand Up @@ -40,21 +40,8 @@ jobs:
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: Install dependencies
run: |
julia --project --color=yes -e 'using Pkg;
VERSION >= v"1.1" && Pkg.build(verbose=true);
VERSION < v"1.1" && Pkg.build()'
shell: bash
- name: Build
run: |
julia --project --color=yes --check-bounds=yes -e 'using Pkg;
Pkg.test(coverage=true);
Pkg.add("Coverage");
using Coverage;
Codecov.submit(process_folder())'
shell: bash
- uses: actions/cache@v1
- name: Cache artifacts
uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
Expand All @@ -64,7 +51,15 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- name: Build package
uses: julia-actions/julia-buildpkg@v1
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- uses: julia-actions/julia-runtest@v1
- name: Run tests
uses: julia-actions/julia-runtest@v1
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
- name: Process coverage
uses: julia-actions/julia-processcoverage@v1
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
files: lcov.info