Skip to content

Commit

Permalink
fix: updated example test
Browse files Browse the repository at this point in the history
  • Loading branch information
SotaTek-DuyLe committed Jul 8, 2024
1 parent 528ca1d commit d4d7ab2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
aws_role_arn: arn:aws:iam::332405224602:role/ci
aws_region: eu-central-1
nightly: true
nightly: ${{ github.event_name == 'schedule' && github.event.schedule == '0 0 * * *' }}
secrets:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -26,11 +26,22 @@ jobs:

nightly:
runs-on: ubuntu-latest
if: ${{ inputs.nightly == true }}
if: ${{ github.event_name == 'schedule' && github.event.schedule == '0 0 * * *' }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
- name: Run example test
run: ./tests/schemathesis_tests/hooks/hooks.py
run: |
pytest tests/example_test.py
2 changes: 2 additions & 0 deletions tests/example_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_example():
assert 10 - 5 == 5

0 comments on commit d4d7ab2

Please sign in to comment.