Skip to content

Update formatter workflow to use actions/checkout@v2 and actions/setu… #48

Update formatter workflow to use actions/checkout@v2 and actions/setu…

Update formatter workflow to use actions/checkout@v2 and actions/setu… #48

Workflow file for this run

name: pytest
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
ENV: test
DB_USER: test
DB_PASSWORD: test
DB_HOST: localhost
DB_PORT: 5432
DB: postgresql
strategy:
matrix:
python-version: ["3.10"]
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test_game_dev_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r requirements.txt
- name: pytest
run: pytest