Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OpenCTM Release | |
on: [push] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python: ["3.10", "3.9", "3.8"] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Run tests | |
run: | | |
python -m pip install pipenv==2023.4.20 | |
pipenv install -d --python ${{ matrix.python }} | |
pipenv run pytest tests | |
shell: bash | |
package-source: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Build source package | |
run: python setup.py sdist | |
- name: Upload source package | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: dist/ | |
package-wheel: | |
runs-on: ${{ matrix.os }} | |
needs: [test] | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Build wheels | |
env: | |
CIBW_SKIP: cp27-* pp27-* cp34-* | |
run: | | |
pip install cibuildwheel | |
cibuildwheel --output-dir dist | |
shell: bash | |
- name: Upload wheels | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: dist/ | |
publish: | |
runs-on: ubuntu-latest | |
needs: [test, package-source, package-wheel] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
name: dist | |
path: dist/ | |
- name: Publish to PyPI | |
if: github.event_name == 'push' && contains(github.event.ref, 'master') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: ${{ secrets.pypi_user }} | |
password: ${{ secrets.pypi_password }} |