Create ruff.yml

This commit is contained in:
Aykhan Shahsuvarov 2023-09-18 13:48:11 +04:00 committed by GitHub
parent 7c9ab28431
commit e67ec8c878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

37
.github/workflows/ruff.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Python Tests with Ruff Linter
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install dependencies
run: |
pip install ruff
- name: Run Ruff Linter
run: |
cd src
ruff app/
- name: Upload test coverage
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage.xml