Update ci.yml
This commit is contained in:
parent
56d180caaa
commit
89de856b94
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -34,14 +34,16 @@ jobs:
|
|||||||
# - x86
|
# - x86
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
|
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- name: Cache artifacts
|
- name: Cache artifacts
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
|
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
||||||
env:
|
env:
|
||||||
cache-name: cache-artifacts
|
cache-name: cache-artifacts
|
||||||
with:
|
with:
|
||||||
@ -61,6 +63,7 @@ jobs:
|
|||||||
|
|
||||||
# TESTCMD
|
# TESTCMD
|
||||||
- name: Default TESTCMD
|
- name: Default TESTCMD
|
||||||
|
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
||||||
run: echo "TESTCMD=julia" >> $GITHUB_ENV
|
run: echo "TESTCMD=julia" >> $GITHUB_ENV
|
||||||
- name: Ubuntu TESTCMD
|
- name: Ubuntu TESTCMD
|
||||||
if: startsWith(matrix.os,'ubuntu')
|
if: startsWith(matrix.os,'ubuntu')
|
||||||
@ -69,9 +72,11 @@ jobs:
|
|||||||
# Julia Dependencies
|
# Julia Dependencies
|
||||||
- name: Install Julia dependencies
|
- name: Install Julia dependencies
|
||||||
uses: julia-actions/julia-buildpkg@latest
|
uses: julia-actions/julia-buildpkg@latest
|
||||||
|
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
- name: Run Graphical test
|
- name: Run Graphical test
|
||||||
|
if: "${{matrix.version}} == '1' || (${{matrix.version}} != '1' && ${{matrix.os}} == 'ubuntu-latest')"
|
||||||
run: |
|
run: |
|
||||||
$TESTCMD --project -e 'using Pkg; Pkg.test(coverage=true)'
|
$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")'
|
$TESTCMD -e 'using Pkg; Pkg.activate(tempdir()); Pkg.develop(path=abspath(".")); Pkg.add("StatsPlots"); Pkg.test("StatsPlots")'
|
||||||
@ -79,7 +84,9 @@ jobs:
|
|||||||
|
|
||||||
# Codecov
|
# Codecov
|
||||||
- uses: julia-actions/julia-processcoverage@v1
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
|
if: "${{matrix.version}} == '1'"
|
||||||
- uses: codecov/codecov-action@v2
|
- uses: codecov/codecov-action@v2
|
||||||
|
if: "${{matrix.version}} == '1'"
|
||||||
with:
|
with:
|
||||||
file: lcov.info
|
file: lcov.info
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user