File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33name : Deploy Release
44
55on :
6- push :
7- tags :
8- - ' *'
9-
10- # This is for debugging.
11- # on:
12- # push:
13- # branches: [ master ]
14- # pull_request:
15- # branches: [ master ]
6+ workflow_dispatch :
7+ release :
8+ types : [ published ]
169
1710concurrency :
1811 group : ${{ github.workflow }}-${{ github.ref }}
1912 cancel-in-progress : true
2013
21- env :
22- TWINE_USERNAME : __token__
23- TWINE_PASSWORD : ${{ secrets.TWINE_TOKEN }}
24-
2514jobs :
2615 wheels :
2716 runs-on : ubuntu-latest
3524 python-version : " 3.12"
3625
3726 - name : Install Dependencies
38- run : python3 -m pip install build twine numpy
27+ run : python3 -m pip install build numpy
3928
4029 - name : Install Package
4130 run : python3 -m pip install .
4938 - name : Build wheels
5039 run : python3 -m build --wheel
5140
52- - name : Upload to PyPI
53- run : |
54- python -m twine upload dist/*.tar.gz && python -m twine upload dist/pshmem*.whl
41+ - uses : actions/upload-artifact@v4
42+ with :
43+ name : pshmem
44+ path : ./dist/pshmem*.whl
45+
46+ upload_pypi :
47+ needs : wheels
48+ runs-on : ubuntu-latest
49+ permissions :
50+ id-token : write
51+ if : github.event_name == 'release' && github.event.action == 'published'
52+ steps :
53+ - uses : actions/download-artifact@v5
54+ with :
55+ # Unpacks all artifacts into dist/
56+ pattern : pshmem-*
57+ path : dist
58+ merge-multiple : true
59+
60+ - uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -89,17 +89,11 @@ jobs:
8989 run : |
9090 source ~/conda/etc/profile.d/conda.sh \
9191 && conda activate test \
92- && mkdir -p test \
93- && pushd test >/dev/null 2>&1 \
94- && MPI_DISABLE=1 python3 -c 'import pshmem.test; pshmem.test.run()' \
95- && popd >/dev/null 2>&1
92+ && MPI_DISABLE=1 python3 -c 'import pshmem.test; pshmem.test.run()'
9693
9794 - name : Run MPI Tests
9895 run : |
9996 source ~/conda/etc/profile.d/conda.sh \
10097 && conda activate test \
101- && mkdir -p test \
102- && pushd test >/dev/null 2>&1 \
10398 && mpirun -np 1 python3 -c 'import pshmem.test; pshmem.test.run()' \
104- && mpirun -np 2 python3 -c 'import pshmem.test; pshmem.test.run()' \
105- && popd >/dev/null 2>&1
99+ && mpirun -np 2 python3 -c 'import pshmem.test; pshmem.test.run()'
Original file line number Diff line number Diff line change 1+ # Generated sources
2+ src /pshmem /_version.py
3+
14# Python binary
25* __pycache__
36* .pyc
You can’t perform that action at this time.
0 commit comments