Skip to content

Commit

Permalink
disallow actions/setup-python from changing environment variables
Browse files Browse the repository at this point in the history
disallow actions/setup-python from changing environment variables; see:
actions/runner#781
actions/setup-python#411
  • Loading branch information
tomkinsc committed Mar 20, 2024
1 parent a718b3c commit 05ab90f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -175,6 +175,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "${{ env.GITHUB_ACTIONS_PYTHON_VERSION }}"
update-environment: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: pull docker image
Expand All @@ -184,10 +185,12 @@ jobs:
echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_ENV
echo "pulling $DOCKER_TAG"
docker pull $DOCKER_TAG
cat /proc/cpuinfo
ls -lah .
mkdir coverage
- name: test with docker
run: |
docker run -e _JAVA_OPTIONS -e PYTEST_ADDOPTS -v `pwd`/coverage:/coverage -v `pwd`/test:/opt/viral-ngs/source/test:rw --entrypoint /bin/bash $DOCKER_TAG -c 'set -e; cd /opt/viral-ngs/source; env; python -c "import locale; print(locale.getpreferredencoding(False))"; pytest test/unit; cp .coverage /coverage'
docker run -e _JAVA_OPTIONS -e PYTEST_ADDOPTS -v `pwd`/coverage:/coverage -v `pwd`/test:/opt/viral-ngs/source/test:rw --entrypoint /bin/bash $DOCKER_TAG -c 'set -e; cd /opt/viral-ngs/source; env; echo $LD_LIBRARY_PATH; python -c "import locale; print(locale.getpreferredencoding(False))"; pytest test/unit; cp .coverage /coverage'
- name: run coveralls
run: |
mv coverage/.coverage .
Expand Down

0 comments on commit 05ab90f

Please sign in to comment.