Skip to content

Commit

Permalink
Julia tests - caching more efficient. (#1231)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
PaulJonasJost authored Dec 4, 2023
1 parent a130613 commit 8201375
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ all =
%(pymc)s
%(aesara)s
%(jax)s
%(julia)s
%(emcee)s
%(dynesty)s
%(mltools)s
Expand Down

0 comments on commit 8201375

Please sign in to comment.