From 89de856b94ed0db67a8bfa6c37235316bbf24d6f Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Wed, 1 Dec 2021 18:43:15 +0100 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f412d77f..8991947d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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