Update ci.yml

This commit is contained in:
Simon Christ 2021-12-01 18:43:15 +01:00 committed by GitHub
parent 56d180caaa
commit 89de856b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,14 +34,16 @@ jobs:
# - x86
steps:
- if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
# Setup environment
- uses: actions/checkout@v2
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
- uses: julia-actions/setup-julia@latest
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
with:
version: ${{ matrix.version }}
- name: Cache artifacts
uses: actions/cache@v1
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
env:
cache-name: cache-artifacts
with:
@ -61,6 +63,7 @@ jobs:
# TESTCMD
- name: Default TESTCMD
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
run: echo "TESTCMD=julia" >> $GITHUB_ENV
- name: Ubuntu TESTCMD
if: startsWith(matrix.os,'ubuntu')
@ -69,9 +72,11 @@ jobs:
# Julia Dependencies
- name: Install Julia dependencies
uses: julia-actions/julia-buildpkg@latest
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
# Run tests
- name: Run Graphical test
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
run: |
$TESTCMD --project -e 'using Pkg; Pkg.test(coverage=true)'
$TESTCMD -e 'using Pkg; Pkg.activate(tempdir()); Pkg.develop(path=abspath(".")); Pkg.add("StatsPlots"); Pkg.test("StatsPlots")'
@ -79,7 +84,9 @@ jobs:
# Codecov
- uses: julia-actions/julia-processcoverage@v1
if: "${{matrix.version}} == '1'"
- uses: codecov/codecov-action@v2
if: "${{matrix.version}} == '1'"
with:
file: lcov.info