Remove publish action for push/pull requests
This commit is contained in:
43
.github/workflows/python-package.yml
vendored
43
.github/workflows/python-package.yml
vendored
@@ -41,45 +41,4 @@ jobs:
|
||||
maturin develop
|
||||
deactivate
|
||||
rm -r lib/
|
||||
pytest -v --capture=tee-sys
|
||||
|
||||
publish:
|
||||
needs: build
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install pandas maturin
|
||||
|
||||
- name: Build Python package
|
||||
run: maturin build --release
|
||||
|
||||
- name: List wheels
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: dir target\wheels\
|
||||
|
||||
- name: List wheels
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: find ./target/wheels/
|
||||
|
||||
- name: publish manylinux wheels
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: dir target\wheels\
|
||||
|
||||
- name: PyPi publish
|
||||
env:
|
||||
MATURIN_PASSWORD: ${{ secrets.PYPI }}
|
||||
run: maturin publish --username Yeltneb
|
||||
|
||||
pytest -v --capture=tee-sys
|
||||
Reference in New Issue
Block a user