Skip to content

Commit

Permalink
Change the way secrets are passed into pytest
Browse files Browse the repository at this point in the history
Following the instructions here:

https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions

In case special characters may be somehow interpreted by the bash interpreter
  • Loading branch information
andychase authored Dec 20, 2023
1 parent bd69c98 commit c3d4f97
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/github-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ jobs:
make html
cd ..
- name: test_package
run: |
export AQSkey=${{ secrets.AQSKEY }}
export AQSuser=${{ secrets.AQSUSER }}
pytest
unset AQSkey
unset AQSuser
env:
AQSkey: ${{ secrets.AQSKEY }}
AQSuser: ${{ secrets.AQSUSER }}
run: pytest

0 comments on commit c3d4f97

Please sign in to comment.