Skip to content

Commit

Permalink
feat: add Redis and Postgres services to CI workflow
Browse files Browse the repository at this point in the history
Generated-by: aiautocommit
  • Loading branch information
iloveitaly committed Nov 16, 2024
1 parent 9389fd2 commit b9cb0ba
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ env:
jobs:
build-and-publish:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
Expand All @@ -24,7 +40,7 @@ jobs:
- name: Make sure it runs
run: uv run python -c 'import ${{ github.event.repository.name }}'

- run: pytest
- run: uv run pytest

- name: Conventional Changelog Action
id: changelog
Expand Down

0 comments on commit b9cb0ba

Please sign in to comment.