mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
split build and publish
This commit is contained in:
parent
72aeb54c18
commit
83b4914bb0
28
.github/workflows/python-package.yml
vendored
28
.github/workflows/python-package.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install flake8 ninja Pillow click nose parameterized
|
||||
python -m pip install flake8 ninja setuptools-scm
|
||||
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
- name: Test with nose
|
||||
run: nosetests tests -d
|
||||
|
||||
publish-wheel:
|
||||
build:
|
||||
needs: test
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
@ -93,20 +93,20 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install wheel twine setuptools
|
||||
python -m pip install setuptools setuptools-scm wheel twine
|
||||
python -m pip install build --user
|
||||
|
||||
- name: Build a binary wheel
|
||||
run: python -m build --wheel --outdir dist/
|
||||
|
||||
- name: Publish to Test PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
- name: Upload wheel as artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
||||
repository_url: https://test.pypi.org/legacy/
|
||||
name: dist
|
||||
path: dist
|
||||
|
||||
publish-sdist:
|
||||
needs: test
|
||||
publish:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -115,10 +115,18 @@ jobs:
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
path: dist
|
||||
|
||||
- name: List artifacts
|
||||
run: ls -l dist
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install setuptools wheel twine
|
||||
python -m pip install setuptools setuptools-scm wheel twine
|
||||
python -m pip install build --user
|
||||
|
||||
- name: Build a source tarball
|
||||
|
Loading…
Reference in New Issue
Block a user