mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-02 22:36:34 +00:00
23 lines
540 B
YAML
23 lines
540 B
YAML
# https://pre-commit.com
|
|
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
|
|
name: Run pre-commit
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python_version: '3.12'
|
|
- run: pipx install pre-commit
|
|
- run: pre-commit --version
|
|
- run: pre-commit run --all-files
|