diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 0000000..880f71b --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,29 @@ +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 + + - name: Run tests + run: | + pytest --maxfail=1 --disable-warnings -q + + - name: Lint code + run: | + pip install pylint + pylint app.py