Skip to content

Commit

Permalink
Move secret unencryption to separate step, with conditional (PRs don'…
Browse files Browse the repository at this point in the history
…t have access to secrets). Onyly run cleanup on one Python version
  • Loading branch information
ecederstrand committed Feb 28, 2021
1 parent 1fc9914 commit 13ef562
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Unencrypt secret file
env:
AES_256_CBC_PASS: ${{ secrets.AES_256_CBC_PASS }}
if: ${{ secrets.AES_256_CBC_PASS }}
run: openssl aes-256-cbc -d -in settings.yml.ghenc -out settings.yml -pass env:AES_256_CBC_PASS
- name: Install dependencies
run: |
openssl aes-256-cbc -d -in settings.yml.ghenc -out settings.yml -pass env:AES_256_CBC_PASS
python -m pip install --upgrade pip
if [[ "$( python --version | grep '[a|b]' )" ]] ; then python -m pip install hg+https://foss.heptapod.net/pypy/cffi ; fi
if [[ "$( python --version | grep '[a|b]' )" ]] ; then python -m pip install git+https://github.com/cython/cython.git ; fi
Expand All @@ -43,5 +45,6 @@ jobs:
coverage run --source=exchangelib -m unittest
coveralls --service=github
- name: Clean up test account
if: ${{ matrix.python-version == 3.9 }}
run: |
PYTHONPATH=./ python scripts/wipe_test_account.py

0 comments on commit 13ef562

Please sign in to comment.