Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia caching more efficient. #1231

Merged
merged 10 commits into from
Dec 4, 2023
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