Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 378c82f

Browse files
committed
- skip Linux test (unreliable github download)
- skip pypi upload if PYPI_API_TOKEN secret not set
1 parent b4fdc62 commit 378c82f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test_n_pub.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.10"]
17-
os: [ubuntu-latest, macos-latest, windows-latest]
17+
os: [macos-latest, windows-latest]
18+
# os: [ubuntu-latest, macos-latest, windows-latest]
1819

1920
steps:
2021
- run: echo ${{github.ref}}
@@ -33,7 +34,9 @@ jobs:
3334
pip install -r requirements.txt
3435
3536
- name: Install ffmpegio-plugin-downloader package
36-
run: pip install -q .
37+
run: |
38+
pip install -q .
39+
pip list
3740
3841
- name: Run tests
3942
run: pytest -vv
@@ -73,6 +76,9 @@ jobs:
7376
# skip_existing: true
7477

7578
- name: Publish distribution 📦 to PyPI
79+
env:
80+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
81+
if: env.PYPI_API_TOKEN != null
7682
uses: pypa/gh-action-pypi-publish@master
7783
with:
7884
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)