We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114685f commit a6fd7c6Copy full SHA for a6fd7c6
.github/workflows/python-app.yml
@@ -61,9 +61,13 @@ jobs:
61
python -m pip install --upgrade pip
62
pip install -r requirements.txt
63
pip install -r requirements-dev.txt
64
- - name: Test with pytest
+ - name: Test with pytest (skip entirely if secrets missing)
65
env:
66
office365_python_sdk_securevars: ${{ secrets.OFFICE365_PYTHON_SDK_SECUREVARS }}
67
run: |
68
- echo "${{env.office365_python_sdk_securevars}}"
69
- pytest
+ if [ -z "${{env.office365_python_sdk_securevars}}" ]; then \
+ echo "No secrets available; skipping pytest"; \
70
+ exit 0; \
71
+ else \
72
+ pytest; \
73
+ fi
0 commit comments