Skip to content

Merge branch 'cleanup' into testpypi #21

Merge branch 'cleanup' into testpypi

Merge branch 'cleanup' into testpypi #21

Workflow file for this run

name: build-wheel
on:
push:
jobs:
wheels:
name: Building wheel on ${{ matrix.python }} ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04]
python: [cp38,cp39,cp310,cp311]
arch: [x86_64]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Get dakota src
run: make get-dakota-src
- uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python }}*${{ matrix.arch }}
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.os }}-${{ matrix.python }}-${{ matrix.arch }}
path: wheelhouse/*.whl
test-pypi:
name: Publish wheels on Test PyPI
runs-on: ubuntu-latest
needs:
- wheels
environment:
name: testpypi
url: https://test.pypi.org/p/itis-dakota
permissions:
id-token: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
pypi:
name: Publish wheels on PyPI
runs-on: ubuntu-latest
needs:
- wheels
- publish-to-testpypi

Check failure on line 60 in .github/workflows/build-wheels.yml

View workflow run for this annotation

GitHub Actions / build-wheel

Invalid workflow file

The workflow is not valid. .github/workflows/build-wheels.yml (Line: 60, Col: 15): Job 'pypi' depends on unknown job 'publish-to-testpypi'.
if: github.ref == 'refs/heads/master'
environment:
name: pypi
url: https://pypi.org/p/itis-dakota
permissions:
id-token: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1