LLaMA-Factory-Mirror/.github/workflows/tests.yml

30 lines
530 B
YAML
Raw Normal View History

2024-01-22 23:13:04 +08:00
name: tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
check_code_quality:
runs-on: ubuntu-latest
steps:
2024-01-22 23:22:15 +08:00
- uses: actions/checkout@v3
2024-01-22 23:13:04 +08:00
2024-01-22 23:22:15 +08:00
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install black ruff
- name: Check quality
run: |
make style && make quality