Skip to content

Fix/refactor tests

Fix/refactor tests #9

Workflow file for this run

name: Code check
on:
pull_request:
branches: [ "develop" ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run DataBase
run: docker run -d --name postgres_container -e POSTGRES_DB=${{ secrets.POSTGRES_DB_CODE_CHECK }} -e POSTGRES_USER=${{ secrets.POSTGRES_USER_CODE_CHECK }} -e POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD_CODE_CHECK }} -p 5432:5432 postgres:14
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: poetry install
- name: Run pre-commit
run: |
poetry run pre-commit run -a