From b3913cf543921dcf64a4fc73057d8f449d3506f6 Mon Sep 17 00:00:00 2001 From: "Stefan K. Seritan" Date: Tue, 30 Jan 2024 10:37:32 -0800 Subject: [PATCH] Update Actions for Node 16 deprecation --- .github/workflows/autodeploy.yml | 4 +- .github/workflows/extras.yml | 4 +- .github/workflows/main-mac.yml | 4 +- .github/workflows/main-minimal.yml | 4 +- .github/workflows/main.yml | 4 +- .github/workflows/manualdeploy.yml | 4 +- .github/workflows/notebook.yml | 4 +- .github/workflows/testdeploy.yml | 86 ------------------------------ 8 files changed, 14 insertions(+), 100 deletions(-) delete mode 100644 .github/workflows/testdeploy.yml diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index 2d44439ab..d8d773353 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -27,7 +27,7 @@ jobs: with: fetch-depth: 0 # to fetch all branches and *tags* (needed to get version number correctly) - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: '3.10' @@ -53,7 +53,7 @@ jobs: with: fetch-depth: 0 # to fetch all branches and *tags* (needed to get version number correctly) - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: '3.10' diff --git a/.github/workflows/extras.yml b/.github/workflows/extras.yml index d078237af..c4e83e292 100644 --- a/.github/workflows/extras.yml +++ b/.github/workflows/extras.yml @@ -35,11 +35,11 @@ jobs: run: | ./.github/ci-scripts/before_install_macos.sh - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}-${{ hashFiles('**/*requirements.txt') }} diff --git a/.github/workflows/main-mac.yml b/.github/workflows/main-mac.yml index 9e4b0290f..dad834209 100644 --- a/.github/workflows/main-mac.yml +++ b/.github/workflows/main-mac.yml @@ -28,11 +28,11 @@ jobs: run: | ./.github/ci-scripts/before_install_macos.sh - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}-${{ hashFiles('**/*requirements.txt') }} diff --git a/.github/workflows/main-minimal.yml b/.github/workflows/main-minimal.yml index 6760a49a1..033c06cff 100644 --- a/.github/workflows/main-minimal.yml +++ b/.github/workflows/main-minimal.yml @@ -33,11 +33,11 @@ jobs: run: | ./.github/ci-scripts/before_install.sh - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}-${{ hashFiles('**/*requirements.txt') }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7134c893..eb3306fbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,11 +30,11 @@ jobs: run: | ./.github/ci-scripts/before_install.sh - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}-${{ hashFiles('**/*requirements.txt') }} diff --git a/.github/workflows/manualdeploy.yml b/.github/workflows/manualdeploy.yml index 15519b59f..332d5e508 100644 --- a/.github/workflows/manualdeploy.yml +++ b/.github/workflows/manualdeploy.yml @@ -20,7 +20,7 @@ jobs: with: fetch-depth: 0 # to fetch all branches and *tags* (needed to get version number correctly) - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: '3.10' @@ -45,7 +45,7 @@ jobs: with: fetch-depth: 0 # to fetch all branches and *tags* (needed to get version number correctly) - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: '3.10' diff --git a/.github/workflows/notebook.yml b/.github/workflows/notebook.yml index ac7dc36be..5758258b5 100644 --- a/.github/workflows/notebook.yml +++ b/.github/workflows/notebook.yml @@ -41,11 +41,11 @@ jobs: #compile chp source code gcc -o ./jupyter_notebooks/Tutorials/algorithms/advanced/chp ./jupyter_notebooks/Tutorials/algorithms/advanced/chp.c - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}-${{ hashFiles('**/*requirements.txt') }} diff --git a/.github/workflows/testdeploy.yml b/.github/workflows/testdeploy.yml deleted file mode 100644 index 48badd5e9..000000000 --- a/.github/workflows/testdeploy.yml +++ /dev/null @@ -1,86 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Deploy on test.pypi.org - -on: - push: - branches: [ "feature-tutorial-evotype-fixes" ] # for initial testing - - # Allow running manually from Actions tab - workflow_dispatch: - - -jobs: - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # to fetch all branches and *tags* (needed to get version number correctly) - - - uses: actions/setup-python@v4 - name: Install Python - with: - python-version: '3.10' - - #Now this is the default: - #- name: Use cython-enabled pyproject.toml - # run: | - # rm pyproject.toml - # mv pyproject.toml.with_cython pyproject.toml - - - name: Build wheels - uses: pypa/cibuildwheel@v2.1.2 - env: - CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* - CIBW_BUILD_VERBOSITY: 1 - CIBW_BEFORE_ALL_LINUX: ./.github/ci-scripts/before_install.sh - - - uses: actions/upload-artifact@v4 - with: - path: ./wheelhouse/*.whl - - build_sdist: - name: Build source distribution - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # to fetch all branches and *tags* (needed to get version number correctly) - - - uses: actions/setup-python@v4 - name: Install Python - with: - python-version: '3.10' - - - name: Build sdist - run: python setup.py sdist - - - uses: actions/upload-artifact@v4 - with: - path: dist/*.tar.gz - - upload_pypi: - needs: [build_wheels, build_sdist] - runs-on: ubuntu-latest - # upload to PyPI on every tag starting with 'v' - #if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') - # alternatively, to publish when a GitHub Release is created, use the following rule: - # if: github.event_name == 'release' && github.event.action == 'published' - steps: - - uses: actions/download-artifact@v4 - with: - name: artifact - path: dist - - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.TESTPYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - verbose: true