Skip to content

Merge pull request #18 from ivellios/updating_settings #41

Merge pull request #18 from ivellios/updating_settings

Merge pull request #18 from ivellios/updating_settings #41

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: test_jewel
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install dependencies
run: uv sync
- name: Run linting
run: uv run ruff check
- name: Run formatting check
run: uv run ruff format --check
- name: Run tests
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_jewel
JEWEL_API_TOKEN: test-token-for-ci
run: uv run pytest -v