Update ci-linux.yml #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
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@v3 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install fastapi uvicorn requests pytest httpx jinja2 | |
- name: Run tests | |
run: | | |
pytest .github/test.py --maxfail=1 --disable-warnings -q | |
- name: Lint code | |
run: | | |
pip install pylint | |
pylint app.py |