Skip to content

Commit

Permalink
test container
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshod5 committed May 13, 2024
1 parent 9dac6fc commit b92deca
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,31 @@ on: [ push, pull_request ]
jobs:
ruff:
runs-on: ubuntu-latest
services:
postgres:
image: postgres

env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run PyTest
run: |
pip install pytest
Expand Down

0 comments on commit b92deca

Please sign in to comment.