Skip to content

Commit

Permalink
chore: fix build by using docker-compose postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Mar 6, 2024
1 parent fd9fcd6 commit f6e67c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,13 @@ on: [push]
jobs:
python:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v1
- name: Show ref
run: |
echo "$GITHUB_REF"
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install libleveldb-dev
pip install coverage wheel pytest
pip install -e ".[postgresql]"
- name: Run the tests
run: make test
run: make build db test
- name: Build a distribution
run: |
python setup.py sdist bdist_wheel
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ test:
docker-compose run --rm ftmstore pytest -s tests

stop:
docker-compose down --remove-orphans
docker-compose down --remove-orphans

dist:
docker-compose run --rm ftmstore python3 setup.py sdist bdist_wheel

0 comments on commit f6e67c6

Please sign in to comment.