Skip to content

Commit e0171ce

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

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
- '3.10'
19+
- '3.11'
20+
- '3.12'
21+
- '3.13'
22+
steps:
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
cache: 'pip'
30+
31+
- name: Run unit tests
32+
run: python testkit/unittests.py
33+
34+
gha-conclusion:
35+
name: GHA Conclusion
36+
needs: win-unit-tests
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Signal failure
40+
if: ${{ cancelled() || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'failure') }}
41+
run: |
42+
echo "Some workflows have failed!"
43+
exit 1
44+
- name: Signal success
45+
if: ${{ !cancelled() && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'failure') }}
46+
run: echo "All done!"

0 commit comments

Comments
 (0)