[CI/CD] Setup complete workflow

This commit is contained in:
OleehyO
2025-04-23 03:00:04 +00:00
parent 6a67017962
commit 29f6f8960d
5 changed files with 171 additions and 0 deletions

27
.github/workflows/python-lint.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Python Linting
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files