Skip to content

Commit

Permalink
Pin python versions
Browse files Browse the repository at this point in the history
GHA setup-python, if not given the full python version, will install the
latest patch.
However, since we cache venvs, things can go out of sync we and get
errors like
```
/home/runner/work/neurodamus/neurodamus/venv/bin/python: bad interpreter: No such file or directory
```
  • Loading branch information
jorblancoa committed Sep 23, 2024
1 parent 1b3519a commit db915ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/simulation_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9.20', '3.10.15', '3.11.10', '3.12.6']
steps:
- name: Setup Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
- name: Example run
run: |
. ./venv/bin/activate
if [ ${{ matrix.python-version }} == 3.9 ]; then
if [ ${{ matrix.python-version }} == 3.9.* ]; then
export RDMAV_FORK_SAFE=1
fi;
export PYTHONPATH=$(pwd)/nrn/build/lib/python:$PYTHONPATH
Expand Down

0 comments on commit db915ff

Please sign in to comment.