-
Notifications
You must be signed in to change notification settings - Fork 71
47 lines (39 loc) · 874 Bytes
/
CI.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
schedule:
- cron: "42 6 * * *"
push:
branches: [develop]
paths:
- "aiotieba/**"
- "tests/**"
- ".github/workflows/CI.yml"
pull_request:
branches: [develop]
paths:
- "aiotieba/**"
- "tests/**"
- ".github/workflows/CI.yml"
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
environment: develop
strategy:
matrix:
python-version: ["3.9", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: develop
- name: Setup UV
uses: astral-sh/setup-uv@v4
- name: Install dependencies
run: uv sync -p ${{ matrix.python-version }}
- name: Run tests
env:
TB_BDUSS: ${{ secrets.BDUSS }}
TB_STOKEN: ${{ secrets.STOKEN }}
run: uv run pytest