From c507c12a229a1d9bfe319f881ab7953f99e9af55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 5 Nov 2023 14:08:42 +0100 Subject: [PATCH] build sdist via pep517 build package --- .github/workflows/ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43953e9..b18ca5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,22 +41,17 @@ jobs: python -m pip install mock python -m pip install flake8 python -m pip install importlib_metadata + python -m pip install build - name: "Lint with flake8" run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics - - name: "Build and test (Old)" - if: ${{ matrix.python != '3.12' }} + - name: "Build and test" run: | - python setup/setup.py sdist --formats=zip - pip install dist/dominate*.zip + python -m build -s + pip install dist/dominate*.tar.gz pytest - - name: "Build and test (Python 3.12+)" - if: ${{ matrix.python == '3.12' }} - run: | - # lolz theres still no correct way to make a python package - false - name: Coveralls env: COVERAGE_RCFILE: ".github/workflows/.coveragerc"