Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Nov 12, 2022
1 parent 49a23e7 commit 19be208
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pypi-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
make_sdist:
name: Make SDist
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 12
matrix:
python-version: ["3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -22,6 +27,11 @@ jobs:

build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 12
matrix:
python-version: ["3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Miniconda
Expand All @@ -41,7 +51,7 @@ jobs:
path: wheelhouse/*.whl

upload_to_test_pypy:
needs: [build]
needs: [build, sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
Expand All @@ -57,7 +67,7 @@ jobs:
repository_url: https://test.pypi.org/legacy/

upload_to_pypi:
needs: [build]
needs: [build, sdist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
Expand Down

0 comments on commit 19be208

Please sign in to comment.