From f6e67c624140cb535b2b7e0dca444935fd62d844 Mon Sep 17 00:00:00 2001 From: Christian Stefanescu Date: Wed, 6 Mar 2024 13:20:06 +0400 Subject: [PATCH] chore: fix build by using docker-compose postgres --- .github/workflows/build.yml | 22 +--------------------- Makefile | 5 ++++- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18713b7..9cb710b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Makefile b/Makefile index 4b16101..8bd473a 100644 --- a/Makefile +++ b/Makefile @@ -8,4 +8,7 @@ test: docker-compose run --rm ftmstore pytest -s tests stop: - docker-compose down --remove-orphans \ No newline at end of file + docker-compose down --remove-orphans + +dist: + docker-compose run --rm ftmstore python3 setup.py sdist bdist_wheel