Skip to content

Commit 25e8a47

Browse files
committed
Add GitHub actions: windows unit tests
1 parent ed1494a commit 25e8a47

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.github/CODEOWNERS @neo4j/drivers
2+
/.github/workflows/ @neo4j/drivers

.github/workflows/tests.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '6.x'
7+
pull_request:
8+
branches:
9+
- '6.x'
10+
11+
jobs:
12+
win-unit-tests:
13+
name: Windows Unit Tests
14+
runs-on: windows-latest
15+
strategy:
16+
matrix:
17+
python-version:
18+
- semver: '3.10'
19+
tox-factor: 'py310'
20+
- semver: '3.11'
21+
tox-factor: 'py311'
22+
- semver: '3.12'
23+
tox-factor: 'py312'
24+
- semver: '3.13'
25+
tox-factor: 'py313'
26+
steps:
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
29+
- name: Set up Python ${{ matrix.python-version.semver }}
30+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
31+
with:
32+
python-version: ${{ matrix.python-version.semver }}
33+
cache: 'pip'
34+
35+
- name: Run install tox
36+
run: python -m pip install -U --group tox
37+
- name: Run unit tests
38+
run: python -m tox -vv --parallel --parallel-no-spinner -f unit -f ${{ matrix.python-version.tox-factor }}
39+
40+
gha-conclusion:
41+
name: GHA Conclusion
42+
needs: win-unit-tests
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Signal failure
46+
if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }}
47+
run: |
48+
echo "Some workflows have failed!"
49+
exit 1
50+
- name: Signal success
51+
if: ${{ !cancelled() && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'failure') }}
52+
run: echo "All done!"

0 commit comments

Comments
 (0)