From 2c8880ff58c39fdffd405b2b54820365c5224cf7 Mon Sep 17 00:00:00 2001 From: Matt Patrick Date: Tue, 15 Dec 2020 18:11:54 -0500 Subject: [PATCH] Don't actually need separate PyPI build jobs --- .github/workflows/tag-actions.yml | 46 ++----------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/.github/workflows/tag-actions.yml b/.github/workflows/tag-actions.yml index 95c3100b..0dda3284 100644 --- a/.github/workflows/tag-actions.yml +++ b/.github/workflows/tag-actions.yml @@ -6,11 +6,11 @@ on: - '*' jobs: - PyPI-sdist: + PyPI: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7'] + python-version: ['3.8'] name: Python ${{ matrix.python-version }} PyPi steps: @@ -39,47 +39,7 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - python setup.py sdist - twine upload dist/* - - PyPI-Wheel: - needs: PyPi-sdist - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [ '2.7', '3.4', '3.5', '3.6', '3.7', '3.8'] - name: Python ${{ matrix.python-version }} PyPi - steps: - - - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - # Need to update if we support other OS's - - name: Cache PIP Install - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-${{ matrix.python-version }}-pip-build-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.python-version }}-pip-build - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - python setup.py bdist_wheel - twine upload dist/* + run: make publish-package Docker: needs: PyPi-Wheel