Skip to content

Commit 413d563

Browse files
authored
add test ci (#103)
1 parent ef9ae43 commit 413d563

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
tests:
10+
name: Run tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
submodules: true
16+
17+
- uses: actions/setup-python@v4
18+
- name: Run tests
19+
run: |
20+
pip3 install pytest ./livekit-protocol ./livekit-api ./livekit-rtc
21+
pytest . --ignore=livekit-rtc/rust-sks
22+

livekit-api/tests/test_access_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_verify_token_expired():
4545
token = (
4646
AccessToken(TEST_API_KEY, TEST_API_SECRET)
4747
.with_identity("test_identity")
48-
.with_ttl(datetime.timedelta(seconds=0))
48+
.with_ttl(datetime.timedelta(seconds=-1))
4949
.to_jwt()
5050
)
5151

0 commit comments

Comments
 (0)