Skip to content

Commit

Permalink
Backport PR #504 on branch 3.x (PR: Update workflow actions (CI)) (#512)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Cordoba <[email protected]>
  • Loading branch information
meeseeksmachine and ccordoba12 authored Sep 30, 2024
1 parent d3af73c commit 47be7a5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 26 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/linux-pip-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ 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
steps:
- 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: |
Expand All @@ -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
15 changes: 7 additions & 8 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,32 @@ 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
steps:
- 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 .
Expand All @@ -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
13 changes: 6 additions & 7 deletions .github/workflows/macos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,28 @@ 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
steps:
- 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 .
Expand All @@ -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
11 changes: 5 additions & 6 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,28 @@ 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
steps:
- 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 .
Expand All @@ -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

0 comments on commit 47be7a5

Please sign in to comment.