From 82013752ce12dfaaefdd3ef36e6efd4c0864a5f7 Mon Sep 17 00:00:00 2001 From: Paul Jonas Jost <70631928+PaulJonasJost@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:03:22 +0100 Subject: [PATCH] Julia tests - caching more efficient. (#1231) * Julia caching more efficient. * Continue cachin tox and cache * Permission only to julia job. * moved caching before dependecie installation * explicitly load PyCall, since it seems to not be installed correctly. * Added Julia to all extra options. * Caching Pythin before julia installation due to conflicts arising with PyCall. --- .github/workflows/ci.yml | 23 +++++++++++++++-------- setup.cfg | 1 + 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae08b6db6..3a70f5765 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,6 +171,11 @@ jobs: matrix: python-version: ['3.9', '3.11'] + # needed to allow julia-actions/cache to delete old caches that it has created + permissions: + actions: write + contents: read + steps: - name: Check out repository uses: actions/checkout@v3 @@ -180,25 +185,27 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install julia - uses: julia-actions/setup-julia@v1 - with: - version: 1.9 - - - name: Cache + - name: Cache tox and cache uses: actions/cache@v3 with: path: | ~/.cache .tox/ - ~/.julia/artifacts key: ${{ runner.os }}-${{ matrix.python-version }}-ci-${{ github.job }} + - name: Install julia + uses: julia-actions/setup-julia@v1 + with: + version: 1.9 + + - name: Cache Julia + uses: julia-actions/cache@v1 + - name: Install dependencies run: .github/workflows/install_deps.sh - name: Install PEtabJL dependencies - run: julia -e 'using Pkg; Pkg.add("PEtab"); Pkg.add("OrdinaryDiffEq"), Pkg.add("Sundials")' + run: julia -e 'using Pkg; Pkg.add("PEtab"); Pkg.add("OrdinaryDiffEq"); Pkg.add("Sundials")' - name: Run tests timeout-minutes: 25 diff --git a/setup.cfg b/setup.cfg index 327aa82d2..64f714e15 100644 --- a/setup.cfg +++ b/setup.cfg @@ -76,6 +76,7 @@ all = %(pymc)s %(aesara)s %(jax)s + %(julia)s %(emcee)s %(dynesty)s %(mltools)s