mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-16 00:28:10 +08:00
update ci
Former-commit-id: e24bf7345442701ca874d439f0ca3da49fa59a84
This commit is contained in:
parent
ed35eb1e9e
commit
571a9b8669
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
@ -3,14 +3,14 @@ name: tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- "main"
|
||||||
paths:
|
paths:
|
||||||
- "**.py"
|
- "**.py"
|
||||||
- "requirements.txt"
|
- "requirements.txt"
|
||||||
- ".github/workflows/*.yml"
|
- ".github/workflows/*.yml"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- "main"
|
||||||
paths:
|
paths:
|
||||||
- "**.py"
|
- "**.py"
|
||||||
- "requirements.txt"
|
- "requirements.txt"
|
||||||
@ -18,7 +18,20 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
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:
|
environment:
|
||||||
name: tests
|
name: tests
|
||||||
@ -33,7 +46,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.8"
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: "pip"
|
cache: "pip"
|
||||||
cache-dependency-path: "setup.py"
|
cache-dependency-path: "setup.py"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user