Skip to content

Commit e8a1f94

Browse files
committed
Move Bats CI check to separate job
1 parent 50680dd commit e8a1f94

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
grep -v -e 'History\.md' -e 'AUTHORS' -e 'man/.*\.1' -e 'man/.*\.html' | \
6666
xargs poetry run codespell --ignore-words=../.github/.ignore_words
6767
68-
test:
68+
test-pytest:
69+
name: 'Test with Pytest'
6970
runs-on: ubuntu-latest
70-
7171
steps:
7272
- uses: actions/checkout@v4
7373
with:
@@ -85,15 +85,23 @@ jobs:
8585
run: |
8686
cd tests || exit
8787
poetry install --only test
88+
- name: Test with Pytest
89+
run: |
90+
cd tests
91+
poetry run pytest
92+
93+
test-bats:
94+
name: 'Test with Bats'
95+
runs-on: ubuntu-latest
96+
steps:
97+
- uses: actions/checkout@v4
98+
with:
99+
submodules: recursive
88100
- name: Setup Bats
89101
id: setup-bats
90102
uses: bats-core/bats-action@3.0.0
91103
with:
92104
bats-version: 'v1.8.1'
93-
- name: Test with Pytest
94-
run: |
95-
cd tests
96-
poetry run pytest
97105
- name: Test with Bats
98106
env:
99107
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}

0 commit comments

Comments
 (0)