Skip to content

Commit

Permalink
bd in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
BrittleFoot committed Jan 27, 2024
1 parent 5296ca2 commit 8a796ad
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,37 @@ on:
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16.1
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- name: Set up Python
uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.12"
cache: "pip"
python-version-file: '.python-version'

- run: pip install -U pip-tools
- run: pip-sync dev-requirements.txt requirements.txt
- run: make lint
- run: make test

- name: Lint
id: lint
run: make lint

- name: Run tests
id: test
env:
DATABASE_URL: postgres://postgres:@localhost:5432/postgres
run: make test
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,4 @@ pyrightconfig.json
.vscode/
.piterpy/

.python-version

src/static/
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12

0 comments on commit 8a796ad

Please sign in to comment.