diff options
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/ci.yml | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e017626..1ce6e5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,10 @@ on: workflow_dispatch: jobs: + lint: + name: Linting + uses: ./.github/workflows/lint.yml + basic: name: Basic usage uses: ./.github/workflows/basic.yml @@ -33,36 +37,10 @@ jobs: # Build a Python package and upload to PyPI. publish: - runs-on: ubuntu-latest + name: Publish needs: + - lint - basic - boost_toolsets - example_toolsets - name: Publish - steps: - - name: Checkout - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: '3.x' - - name: Verify package can be installed - run: pip install -q . - - name: Install package builder - run: pip install -q --upgrade build - - name: Build package - run: python -m build - - name: Publish as artifact - uses: actions/upload-artifact@v7 - with: - name: dist - path: dist - if-no-files-found: error - - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags/') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: '${{ secrets.PYPI_API_TOKEN }}' + uses: ./.github/workflows/publish.yml |
