Add GHA with Ruff and Pytest
This commit is contained in:
parent
9758991ca5
commit
af0ab022ce
16
.github/workflows/lint-and-test.yaml
vendored
Normal file
16
.github/workflows/lint-and-test.yaml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: 'Lint and Test'
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
lint_and_test:
|
||||
name: 'Lint and Test'
|
||||
runs-on: 'ubuntu-latest'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
cache: 'pip'
|
||||
- run: 'python3 -m pip install -r requirements.txt'
|
||||
- run: 'ruff check .'
|
||||
- run: 'pytest .'
|
@ -1,6 +1,6 @@
|
||||
from flask import Blueprint, render_template, request
|
||||
from . import db
|
||||
from .models import Deck, Game, Player
|
||||
from .models import Player
|
||||
|
||||
main = Blueprint("main", __name__)
|
||||
|
||||
|
@ -2,4 +2,5 @@ Flask
|
||||
Flask-SQLAlchemy
|
||||
flasgger
|
||||
flask-login
|
||||
pytest
|
||||
ruff
|
||||
|
Loading…
x
Reference in New Issue
Block a user