29 lines
543 B
YAML
29 lines
543 B
YAML
name: python
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt pytest httpx
|
|
|
|
- name: Compile checks
|
|
run: python -m compileall -q app tests
|
|
|
|
- name: Run tests
|
|
run: pytest -q
|