diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index c732c8c..204923f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,12 +17,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] 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: Display Python version @@ -41,26 +41,26 @@ jobs: run: | python -m unittest discover nionswift_plugin -v -p '*_test.py' - name: Upload Artifacts - uses: actions/upload-artifact@v3 - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' + uses: actions/upload-artifact@v4 + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' with: name: distribution path: dist - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' with: skip-existing: true user: __token__ password: ${{ secrets.pypi_password }} - name: Set up Miniconda for conda-build - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' - uses: conda-incubator/setup-miniconda@v2 + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' + uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true python-version: '3.10' - name: Build/publish anaconda package - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' shell: bash -l {0} run: | # make a directory to avoid name conflicts with the channel. argh.