Spaces:
Configuration error
Configuration error
File size: 1,139 Bytes
8f9ef52 9b5aba1 f970d83 9b5aba1 8f9ef52 f970d83 8f9ef52 78f871e b3942e7 8f9ef52 f970d83 8f9ef52 9b5aba1 8f9ef52 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
name: CI
on: [push, pull_request]
jobs:
lint:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run linter
uses: psf/black@stable
with:
options: "--check --verbose -l 120"
src: "./app"
version: "~= 22.0"
mypy:
name: Mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install mypy
pip install -r app/requirements.txt
python3 -m pip install types-Pillow
- name: Run mypy
run: mypy .
test:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install pytest
pip install -r app/requirements.txt
- name: Run tests
run: pytest
|