mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2025-04-15 02:23:12 +00:00
Create ruff.yml
This commit is contained in:
parent
7c9ab28431
commit
e67ec8c878
37
.github/workflows/ruff.yml
vendored
Normal file
37
.github/workflows/ruff.yml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user