version bump v0.7.0 #78
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
jobs: | |
lint: | |
name: Flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.x' | |
- name: Install Flake8 | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install flake8 | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Lint Python Code | |
run: flake8 . | |
test: | |
name: Django Tests | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_USER: django | |
POSTGRES_PASSWORD: supersecret | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.x' | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Install Test Dependencies | |
run: | | |
pip install -U pip | |
pip install factory_boy==3.3.1 pytest==8.3.3 pytest-cov==5.0.0 \ | |
pytest-django==4.9.0 pytest-env==1.1.5 pytest-flakes==4.0.5 | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Execute Tests | |
env: | |
DJANGO_SETTINGS_MODULE: parlance.settings.testing | |
PARLANCE_DATABASE_URL: postgres://django:[email protected]:5432/parlance_test | |
PARLANCE_SECRET_KEY: supersecretsquirrel | |
run: pytest |