@@ -23,68 +23,39 @@ jobs:
2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : Cancel Previous Runs
26- uses : styfle/cancel-workflow-action@0.4.0
26+ uses : styfle/cancel-workflow-action@0.9.1
2727 with :
2828 access_token : ${{ github.token }}
29+
2930 - name : Checkout
3031 uses : actions/checkout@v2
32+
3133 - name : Set up Python 3.7
3234 uses : actions/setup-python@v2
3335 with :
3436 python-version : 3.7
37+
3538 - name : Install Dependencies
3639 run : ./test_scripts/install_deps_github_ubuntu.sh && pip install twine
40+
3741 - name : Install Package
3842 run : pip install .
43+
3944 - name : Run Serial Test
4045 run : MPI_DISABLE=1 python3 -c 'import pshmem.test; pshmem.test.run()'
46+
4147 - name : Run MPI Test on 1 Process
4248 run : mpirun -np 1 python3 -c 'import pshmem.test; pshmem.test.run()'
49+
4350 - name : Run MPI Test on 2 Processes
4451 run : mpirun -np 2 python3 -c 'import pshmem.test; pshmem.test.run()'
52+
4553 - name : Build source package
4654 run : rm -rf dist && python setup.py sdist
55+
4756 - name : Build wheels
4857 run : mkdir -p wheelhouse && pip wheel -w wheelhouse .
58+
4959 - name : Upload to PyPI
5060 run : |
5161 python -m twine upload dist/*.tar.gz && python -m twine upload wheelhouse/pshmem*.whl
52-
53-
54- # jobs:
55- # wheels:
56- # name: Python wheels on ${{ matrix.os }}
57- # runs-on: ${{ matrix.os }}
58- # strategy:
59- # matrix:
60- # os: [ubuntu-latest, macos-latest]
61- # env:
62- # CIBW_BUILD: cp36-macosx_x86_64 cp36-manylinux_x86_64 cp37-macosx_x86_64 cp37-manylinux_x86_64 cp38-macosx_x86_64 cp38-manylinux_x86_64
63- # CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
64- # CIBW_MANYLINUX_I686_IMAGE: manylinux2014
65- # CIBW_BUILD_VERBOSITY: 3
66- # CIBW_ENVIRONMENT_LINUX: "PATH=/usr/lib64/mpich-3.2/bin:${PATH}"
67- # CIBW_BEFORE_BUILD_LINUX: ./test_scripts/install_deps_cibuildwheel_linux.sh
68- # CIBW_BEFORE_BUILD_MACOS: ./test_scripts/install_deps_cibuildwheel_macos.sh
69- # CIBW_BEFORE_TEST: pip3 install numpy && pip3 install mpi4py
70- # CIBW_TEST_COMMAND: mpirun -np 2 python -c 'import pshmem; pshmem.test()'
71- # steps:
72- # - uses: actions/checkout@v2
73- # - uses: actions/setup-python@v2
74- # name: Install Python
75- # with:
76- # python-version: '3.7'
77- # - name: Install cibuildwheel
78- # run: |
79- # python -m pip install twine cibuildwheel==1.4.2
80- # - name: Build wheel
81- # run: |
82- # python -m cibuildwheel --output-dir wheelhouse
83- # - name: Upload to PyPI
84- # run: |
85- # python -m twine upload wheelhouse/*.whl
86-
87- # - uses: actions/upload-artifact@v2
88- # with:
89- # name: wheels
90- # path: ./wheelhouse
0 commit comments