diff --git a/.github/workflows/docs-gh-pages.yml b/.github/workflows/docs-gh-pages.yml index 294e0798..fa1940d3 100644 --- a/.github/workflows/docs-gh-pages.yml +++ b/.github/workflows/docs-gh-pages.yml @@ -25,7 +25,7 @@ jobs: runs-on: [ubuntu-latest] container: python:3.10-bookworm steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | apt-get update diff --git a/.github/workflows/pypi-deploy.yml b/.github/workflows/pypi-deploy.yml index a968775c..55dd2a5a 100644 --- a/.github/workflows/pypi-deploy.yml +++ b/.github/workflows/pypi-deploy.yml @@ -1,8 +1,9 @@ name: Build and upload to PyPI on: + workflow_dispatch: release: - type: [published] + types: [published] env: CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* @@ -18,11 +19,11 @@ jobs: matrix: os: [ubuntu-latest] #, windows-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 name: Install Python with: python-version: '3.10' @@ -35,8 +36,9 @@ jobs: run: | # python -m cibuildwheel --output-dir wheelhouse python setup.py bdist_wheel - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: + name: artifact-wheel-${{ matrix.os }} path: ./dist/*.whl @@ -44,11 +46,11 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 name: Install Python with: python-version: '3.10' @@ -60,8 +62,9 @@ jobs: - name: Build sdist run: python setup.py sdist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: + name: artifact-sdist path: dist/*.tar.gz upload_pypi: @@ -69,12 +72,22 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: - name: artifact + name: artifact-sdist path: dist - - uses: pypa/gh-action-pypi-publish@master + # - uses: actions/download-artifact@v4 + # with: + # name: artifact-wheel-windows-latest + # path: dist + + - uses: actions/download-artifact@v4 + with: + name: artifact-wheel-ubuntu-latest + path: dist + + - uses: pypa/gh-action-pypi-publish@v1.10.2 with: user: __token__ password: ${{ secrets.upload_pypi }} diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 4091082e..218b449f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,9 +19,9 @@ jobs: python-version: ["3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies