Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Jul 11, 2024
1 parent 3df933b commit 3bb8b22
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/python-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: wheels
name: wheels-lin
path: ./python/dist/*.whl

- name: Make sdist
Expand All @@ -61,7 +61,7 @@ jobs:
path: ./python/dist/*.tar.gz

build_mac:
runs-on: macos-12
runs-on: macos-13
strategy:
max-parallel: 4
matrix:
Expand Down Expand Up @@ -93,9 +93,9 @@ jobs:
pip install pytest
pytest tests
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-mac-py${{ matrix.python-version }}
path: ./python/dist/*.whl

build_win:
Expand All @@ -108,9 +108,9 @@ jobs:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: "x64" # (x64 or x86)
Expand All @@ -133,9 +133,9 @@ jobs:
python -c "import wkw"
pytest tests -k "not big_read"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-win-py${{ matrix.python-version }}
path: ./python/dist/*.whl

publish:
Expand All @@ -147,20 +147,21 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"
- name: Get wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheels-*
merge-multiple: true
path: dist
- name: Get tar.gz
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: targz
path: dist
Expand Down

0 comments on commit 3bb8b22

Please sign in to comment.