-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 873 Bytes
/
tests.yaml
File metadata and controls
35 lines (29 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: 'Set up Python'
uses: actions/setup-python@v6
with:
python-version-file: './apps/symapi/.python-version'
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install JS deps
run: bun install
- name: Run tests
run: |
bun dev --filter=@learning/symapi &
for i in {1..30}; do
curl -fsS http://localhost:8088/openapi.json > /dev/null && break || echo "waiting..."
sleep 1
done || exit 1
bun run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}