update ci

Former-commit-id: 315284f6272f2510f28b3267015aeb7336721bce
This commit is contained in:
hiyouga 2024-09-05 02:26:10 +08:00
parent ce77a89d8c
commit cc02fb6180

View File

@ -3,14 +3,14 @@ name: tests
on:
push:
branches:
- main
- "main"
paths:
- "**.py"
- "requirements.txt"
- ".github/workflows/*.yml"
pull_request:
branches:
- main
- "main"
paths:
- "**.py"
- "requirements.txt"
@ -18,7 +18,20 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
runs-on: ${{ matrix.os }}
environment:
name: tests
@ -33,7 +46,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "setup.py"