Skip to content

Commit

Permalink
build sdist via pep517 build package
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Nov 5, 2023
1 parent d4a400a commit c507c12
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c507c12

Please sign in to comment.