Skip to content

Commit

Permalink
add succeeding and failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
h3nryc0ding committed Sep 30, 2024
1 parent 7ea2e5c commit 945fd50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
type: [unit, integration]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -21,4 +22,4 @@ jobs:
run: pip install .
- name: Run example tests
working-directory: example/broken
run: tox -e sanity-py3.12-2.17 --ansible --conf tox-ansible.ini
run: tox -e ${{ matrix.type }}-py3.12-2.17 --ansible --conf tox-ansible.ini
2 changes: 2 additions & 0 deletions example/broken/tests/integration/test_failure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_always_fail():
assert False
2 changes: 2 additions & 0 deletions example/broken/tests/unit/test_success.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_always_succeed():
assert True

0 comments on commit 945fd50

Please sign in to comment.