Skip to content

Commit

Permalink
Always check packages to catch packing errors before creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Feb 13, 2023
1 parent b0cc520 commit a1fce5b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Package Test
on: [push, pull_request]
concurrency:
group: package-${{ github.ref }}
cancel-in-progress: true
jobs:
package:
name: Package Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install --upgrade twine wheel
- name: Create and check packages
run: |
python3 setup.py sdist bdist_wheel
twine check dist/*
ls -l dist

0 comments on commit a1fce5b

Please sign in to comment.