Skip to content

Delete docs/api.md

Delete docs/api.md #58

Workflow file for this run

name: code checks

Check failure on line 1 in .github/workflows/code_checks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/code_checks.yml

Invalid workflow file

(Line: 27, Col: 5): you may only define one of `paths` and `paths-ignore` for a single event
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/code_checks.yml
- '**.py'
- uv.lock
- pyproject.toml
- '**.ipynb'
pull_request:
branches:
- main
paths:
- .pre-commit-config.yaml
- .github/workflows/code_checks.yml
- '**.py'
- uv.lock
- pyproject.toml
- '**.ipynb'
paths-ignore:
- "trl/**"
- "**/factualdpo_trainer.py"
jobs:
run-code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
with:
# Install a specific version of uv.
version: "0.5.21"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --all-extras --dev
- name: Install dependencies and check code
run: |
source .venv/bin/activate
pre-commit run --all-files
- name: pip-audit (gh-action-pip-audit)
uses: pypa/gh-action-pip-audit@v1.1.0
with:
virtual-environment: .venv
ignore-vulns: |
PYSEC-2024-161
GHSA-gm62-xv2j-4w53
GHSA-2xpw-w6gg-jr37