Create tests.yaml
This commit is contained in:
committed by
GitHub
parent
a971ef4e09
commit
ea9889c1a7
@@ -0,0 +1,26 @@
|
||||
name: Run Tests & Linting
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run Tests
|
||||
run: pytest tests/
|
||||
|
||||
- name: Run Linter (Flake8)
|
||||
run: flake8 app/
|
||||
Reference in New Issue
Block a user