Bump version: 0.95.1 → 0.96.0 #91
Workflow file for this run
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: run apphelpers tests | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on a push to master | |
push: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_DB: defaultdb | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
cache: "pip" | |
cache-dependency-path: "**/requirements_dev.txt" | |
- name: Run tests | |
run: | | |
export SETTINGS_DIR=. | |
pip install -r requirements_dev.txt | |
pip install -e . | |
gunicorn tests.service:__hug_wsgi__ -D | |
uvicorn fastapi_tests.service:app --port 5000 & | |
# pre-commit run --all-files TODO: check what's wrong in CI | |
pytest tests | |
pytest fastapi_tests |