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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
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
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
@ -59,7 +59,7 @@ jobs:
|
|||||||
- name: Test with nose
|
- name: Test with nose
|
||||||
run: nosetests tests -d
|
run: nosetests tests -d
|
||||||
|
|
||||||
publish-wheel:
|
build:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
@ -93,20 +93,20 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
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
|
python -m pip install build --user
|
||||||
|
|
||||||
- name: Build a binary wheel
|
- name: Build a binary wheel
|
||||||
run: python -m build --wheel --outdir dist/
|
run: python -m build --wheel --outdir dist/
|
||||||
|
|
||||||
- name: Publish to Test PyPI
|
- name: Upload wheel as artifact
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
name: dist
|
||||||
repository_url: https://test.pypi.org/legacy/
|
path: dist
|
||||||
|
|
||||||
publish-sdist:
|
publish:
|
||||||
needs: test
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -115,10 +115,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
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
|
python -m pip install build --user
|
||||||
|
|
||||||
- name: Build a source tarball
|
- name: Build a source tarball
|
||||||
|
Loading…
Reference in New Issue
Block a user