From 47be7a5beaeee2f6830781adb0d16912fd7bf71a Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:54:16 -0700 Subject: [PATCH] Backport PR #504 on branch 3.x (PR: Update workflow actions (CI)) (#512) Co-authored-by: Carlos Cordoba --- .github/workflows/linux-pip-tests.yml | 10 +++++----- .github/workflows/linux-tests.yml | 15 +++++++-------- .github/workflows/macos-tests.yml | 13 ++++++------- .github/workflows/windows-tests.yml | 11 +++++------ 4 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/linux-pip-tests.yml b/.github/workflows/linux-pip-tests.yml index eacce852..1a4f1e5a 100644 --- a/.github/workflows/linux-pip-tests.yml +++ b/.github/workflows/linux-pip-tests.yml @@ -24,7 +24,7 @@ jobs: RUNNER_OS: 'ubuntu' USE_CONDA: 'false' strategy: - fail-fast: false + fail-fast: false matrix: PYTHON_VERSION: ['3.8', '3.9', '3.10'] timeout-minutes: 20 @@ -32,16 +32,16 @@ jobs: - name: Checkout branch uses: actions/checkout@v1 - name: Install System Packages - run: | + run: | sudo apt-get update sudo apt-get install libegl1-mesa libopengl0 - name: Install Conda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: activate-environment: test auto-update-conda: false auto-activate-base: false - python-version: ${{ matrix.PYTHON_VERSION }} + python-version: ${{ matrix.PYTHON_VERSION }} - name: Install package and dependencies shell: bash -l {0} run: | @@ -61,7 +61,7 @@ jobs: xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -vv || \ xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -vv - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false verbose: true diff --git a/.github/workflows/linux-tests.yml b/.github/workflows/linux-tests.yml index 449e7fde..87381c3e 100644 --- a/.github/workflows/linux-tests.yml +++ b/.github/workflows/linux-tests.yml @@ -24,7 +24,7 @@ jobs: RUNNER_OS: 'ubuntu' USE_CONDA: 'true' strategy: - fail-fast: false + fail-fast: false matrix: PYTHON_VERSION: ['3.8', '3.9', '3.10'] timeout-minutes: 20 @@ -32,25 +32,24 @@ jobs: - name: Checkout branch uses: actions/checkout@v1 - name: Install System Packages - run: | + run: | sudo apt-get update sudo apt-get install libegl1-mesa libopengl0 - name: Install Conda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: activate-environment: test auto-update-conda: true auto-activate-base: false channels: conda-forge - miniforge-variant: Mambaforge - python-version: ${{ matrix.PYTHON_VERSION }} + python-version: ${{ matrix.PYTHON_VERSION }} - name: Install package dependencies shell: bash -l {0} run: | - mamba install --file requirements/posix.txt -y -q + conda install --file requirements/posix.txt -y -q - name: Install test dependencies shell: bash -l {0} - run: mamba install --file requirements/tests.txt -y -q + run: conda install --file requirements/tests.txt -y -q - name: Install Package shell: bash -l {0} run: pip install -e . @@ -69,7 +68,7 @@ jobs: xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -vv || \ xvfb-run --auto-servernum pytest spyder_kernels --color=yes --cov=spyder_kernels -vv - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false verbose: true diff --git a/.github/workflows/macos-tests.yml b/.github/workflows/macos-tests.yml index 25b20cd5..7b28e9fd 100644 --- a/.github/workflows/macos-tests.yml +++ b/.github/workflows/macos-tests.yml @@ -24,7 +24,7 @@ jobs: RUNNER_OS: 'macos' USE_CONDA: 'true' strategy: - fail-fast: false + fail-fast: false matrix: PYTHON_VERSION: ['3.8', '3.9', '3.10'] timeout-minutes: 25 @@ -32,21 +32,20 @@ jobs: - name: Checkout branch uses: actions/checkout@v1 - name: Install Conda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: activate-environment: test auto-update-conda: true auto-activate-base: false channels: conda-forge - miniforge-variant: Mambaforge - python-version: ${{ matrix.PYTHON_VERSION }} + python-version: ${{ matrix.PYTHON_VERSION }} - name: Install package dependencies shell: bash -l {0} run: | - mamba install --file requirements/posix.txt -y -q + conda install --file requirements/posix.txt -y -q - name: Install test dependencies shell: bash -l {0} - run: mamba install --file requirements/tests.txt -y -q + run: conda install --file requirements/tests.txt -y -q - name: Install Package shell: bash -l {0} run: pip install -e . @@ -65,7 +64,7 @@ jobs: pytest spyder_kernels --color=yes --cov=spyder_kernels -vv || \ pytest spyder_kernels --color=yes --cov=spyder_kernels -vv - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false verbose: true diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index 35f5f5f5..ec9d2f16 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -24,7 +24,7 @@ jobs: RUNNER_OS: 'windows' USE_CONDA: 'true' strategy: - fail-fast: false + fail-fast: false matrix: PYTHON_VERSION: ['3.8', '3.9', '3.10'] timeout-minutes: 25 @@ -32,21 +32,20 @@ jobs: - name: Checkout branch uses: actions/checkout@v1 - name: Install Conda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: activate-environment: test auto-update-conda: true auto-activate-base: false channels: conda-forge - miniforge-variant: Mambaforge python-version: ${{ matrix.PYTHON_VERSION }} - name: Install package dependencies shell: bash -l {0} - run: mamba install --file requirements/windows.txt -y -q + run: conda install --file requirements/windows.txt -y -q - name: Install test dependencies shell: bash -l {0} run: | - mamba install --file requirements/tests.txt -y -q + conda install --file requirements/tests.txt -y -q - name: Install Package shell: bash -l {0} run: pip install -e . @@ -65,7 +64,7 @@ jobs: pytest spyder_kernels --color=yes --cov=spyder_kernels -vv || \ pytest spyder_kernels --cov=spyder_kernels -vv - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false verbose: true