Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Disable live tests on PR from fork
Browse files Browse the repository at this point in the history
PRs from forks won't use our GitHub Actions secrets, so only run the
offline tests for those. We need to come up with a better method to
handle this.

Signed-off-by: Major Hayden <major@redhat.com>
  • Loading branch information
major committed Oct 7, 2022
1 parent 398a0b7 commit ec9adb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,17 @@ jobs:
- name: Install pytest plugin
run: poetry run pip install pytest-github-actions-annotate-failures

- name: Run pytest
- name: Run pytest with live e2e tests
if: ${{ github.repository_owner == 'redhatcloudx' }}
run: poetry run python -m pytest -n auto -p no:sugar -q tests/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Run pytest with offline tests only
if: ${{ github.repository_owner != 'redhatcloudx' }}
run: poetry run python -m pytest -m "not e2e -n auto -p no:sugar -q tests/

- name: Check for clean working tree
run: |
git diff --exit-code --stat HEAD

0 comments on commit ec9adb8

Please sign in to comment.