Skip to content

CI

CI #1063

Workflow file for this run

name: CI
on:
schedule:
- cron: "42 6 * * *"
push:
branches: [develop]
paths:
- "aiotieba/**"
- "thirdparty/**"
- "tests/**"
- ".github/workflows/CI*"
pull_request:
branches: [develop]
paths:
- "aiotieba/**"
- "thirdparty/**"
- "tests/**"
- ".github/workflows/CI*"
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
environment: develop
strategy:
matrix:
python-version: ["3.8", "3.12"]
steps:
- name: Checkout develop
uses: actions/checkout@v4
with:
ref: develop
- name: Setup Rye
uses: eifinger/setup-rye@v2
- name: Pin Py${{ matrix.python-version }}
run: |
rye pin ${{ matrix.python-version }}
rye sync --features=speedup
- name: Run tests
env:
TB_BDUSS: ${{ secrets.BDUSS }}
TB_STOKEN: ${{ secrets.STOKEN }}
run: rye test