|
|
|
@ -36,7 +36,7 @@ jobs: |
|
|
|
- uses: actions/setup-python@v2 |
|
|
|
with: |
|
|
|
python-version: 3.9 |
|
|
|
- uses: Gr1N/setup-poetry@v4 |
|
|
|
- run: pip install "poetry~=1.1.4" |
|
|
|
- run: poetry check |
|
|
|
- run: poetry install |
|
|
|
- run: poetry build --format sdist |
|
|
|
@ -45,8 +45,30 @@ jobs: |
|
|
|
name: wheelhouse |
|
|
|
path: ./dist/*.tar.gz |
|
|
|
|
|
|
|
upload_pypi: |
|
|
|
test_install: |
|
|
|
name: Test install on ${{ matrix.os }} / ${{ matrix.python-version }} |
|
|
|
needs: [build_wheels, build_sdist] |
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
os: [ubuntu-latest, macOS-latest] |
|
|
|
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy-2.7", "pypy-3.6", "pypy-3.7"] |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- uses: actions/setup-python@v2 |
|
|
|
with: |
|
|
|
python-version: ${{ matrix.python-version }} |
|
|
|
- uses: actions/download-artifact@v2 |
|
|
|
with: |
|
|
|
name: wheelhouse |
|
|
|
path: dist |
|
|
|
- run: pip install --no-index --find-links=./dist sysaudit |
|
|
|
name: Install sysaudit from wheels |
|
|
|
- run: python -c "import sysaudit; sysaudit.audit('event')" |
|
|
|
name: Check module is importable |
|
|
|
|
|
|
|
upload_pypi: |
|
|
|
needs: [test_install] |
|
|
|
runs-on: ubuntu-latest |
|
|
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |
|
|
|
steps: |
|
|
|
|