Skip to content

Commit a7ec57d

Browse files
authored
Update unit-tests.yml
1 parent ab12bb3 commit a7ec57d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/unit-tests.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1+
# .github/workflows/unit-tests.yml
2+
13
name: CI – Unit Tests
24

35
on:
46
push:
57
pull_request:
68

7-
jobs:
8-
client-tests:
9-
name: Client (React) Tests
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: '18'
16-
- name: Install & Test Client
17-
working-directory: client
18-
run: |
19-
npm ci
20-
npm test -- --ci || echo "No client tests"
9+
permissions:
10+
contents: read
2111

12+
jobs:
2213
python-tests:
2314
name: Python Tests
2415
runs-on: ubuntu-latest
16+
2517
strategy:
2618
matrix:
2719
python-version: ['3.10', '3.11']
20+
2821
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v5
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
3127
with:
3228
python-version: ${{ matrix.python-version }}
3329
cache: pip
34-
- name: Install Dependencies
35-
run: pip install -r requirements.txt
30+
31+
- name: Install dependencies
32+
run: |
33+
pip install -r requirements.txt
34+
3635
- name: Run pytest
37-
run: pytest tests || echo "No Python tests"
36+
run: |
37+
pytest tests || echo "No Python tests found"

0 commit comments

Comments
 (0)