Skip to content

Commit

Permalink
Change package building pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfidenceYobo authored Sep 14, 2021
1 parent 5853b1f commit 1b19a68
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
python -m pip install flake8 build
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- 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
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: py-package-publish
# You may pin to the exact commit or the version.
# uses: mariamrf/py-package-publish-action@6f9dbe7625b3eb881550e953f99b28d583add3f9
uses: mariamrf/py-package-publish-action@v1.1.0
with:
# a Python version that is supported by pyenv.
python_version: 3.7.0
- name: Build package
run: python -m build
# - name: py-package-publish
# # You may pin to the exact commit or the version.
# # uses: mariamrf/py-package-publish-action@6f9dbe7625b3eb881550e953f99b28d583add3f9
# uses: mariamrf/py-package-publish-action@v1.1.0
# with:
# # a Python version that is supported by pyenv.
# python_version: 3.7.0

0 comments on commit 1b19a68

Please sign in to comment.