Skip to content

CI

CI #1317

Workflow file for this run

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.12"]
steps:
- name: Checkout develop
uses: actions/checkout@v4
with:
ref: develop
- name: Setup UV
uses: astral-sh/setup-uv@v3
- 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