Merge pull request #164 from StarkZarn/renovate/mypy-1.x-lockfile #841
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 tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgres:17-alpine | |
env: | |
POSTGRES_USER: shynet_db_user | |
POSTGRES_PASSWORD: shynet_db_user_password | |
POSTGRES_DB: shynet_db | |
ports: | |
- 5432:5432 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.13] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/[email protected] | |
- name: Install dependencies | |
run: poetry install | |
- name: Django Testing project | |
env: | |
DJANGO_SETTINGS_MODULES: shynet.test_settings | |
run: | | |
cp TEMPLATE.env .env | |
DJANGO_SETTINGS_MODULES=shynet.test_settings poetry run ./shynet/manage.py test |