Skip to content

Commit

Permalink
try explicit env[PYTHON] declaration in CI
Browse files Browse the repository at this point in the history
Had a random `doc` CI failure due to PyPlot not grabbing correct python version. Try passing `env[PYTHON]` to use the version set up by `setup-python` action explicitly. This might be more robust?
  • Loading branch information
cgarling committed Jun 5, 2024
1 parent 121bcc4 commit 1af9bf2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ jobs:
- uses: julia-actions/julia-buildpkg@v1
- run: julia --color=yes -e 'using Pkg; Pkg.add("Aqua")'
- run: julia --project=@. --color=yes -e 'using Aqua, StarFormationHistories; Aqua.test_all(StarFormationHistories; ambiguities=false, piracies=(treat_as_own=[mean],))'

docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: cpython3
with:
python-version: '3.x'
- run: python -m pip install --upgrade pip
Expand All @@ -71,12 +73,14 @@ jobs:
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Instantiate docs project
- name: Instantiate and build docs project
run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
env:
PYTHON: ${{ steps.cpython3.outputs.python-path }}
- name: Run doctests
run: |
julia --project=docs -e '
Expand Down

0 comments on commit 1af9bf2

Please sign in to comment.