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