Skip to content

Commit

Permalink
Fix packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
huzecong committed Jul 7, 2022
1 parent 9688e6a commit 1cda7b7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Build dists
run: |
pip install wheel
python setup.py sdist
python setup.py bdist_wheel
pip install build wheel
python -m build
- name: Publish to PyPI
run: |
pip install --upgrade twine
Expand All @@ -87,7 +86,7 @@ jobs:
with:
path: "repo"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install PyPI package
Expand All @@ -96,5 +95,5 @@ jobs:
- name: Unit test with PyPI package
run: |
pip install pytest
pip install typing-extensions
pip install typing-extensions attrs
python -m pytest repo/

0 comments on commit 1cda7b7

Please sign in to comment.