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..d264726b 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,7 +36,7 @@ jobs: run: | # python -m cibuildwheel --output-dir wheelhouse python setup.py bdist_wheel - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: path: ./dist/*.whl @@ -44,11 +45,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,7 +61,7 @@ jobs: - name: Build sdist run: python setup.py sdist - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz @@ -69,11 +70,21 @@ 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 path: dist + - 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@master with: user: __token__ 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