Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup-miniconda action version and use miniforge due to mambaforge sunsetting #627

Merged
merged 5 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,23 @@ jobs:
sudo apt-get update
sudo apt-get install -y --no-install-recommends '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev libegl1
- 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
miniforge-version: latest
mamba-version: "*"
channels: conda-forge
channel-priority: strict
miniforge-variant: Mambaforge
channel-priority: true
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install dependencies with conda
if: matrix.INSTALL_TYPE == 'conda'
shell: bash -l {0}
shell: bash -el {0}
run: mamba env update --file requirements/environment.yml
- name: Install dependencies with pip
if: matrix.INSTALL_TYPE == 'pip'
shell: bash -l {0}
shell: bash -el {0}
run: |
pip install -e .[test]
if [ ${{ matrix.QT_LIB }} = "pyqt6" ]; then
Expand All @@ -66,18 +67,18 @@ jobs:
pip install ${{ matrix.QT_LIB }} coveralls pytest-cov
fi
- name: Show environment information
shell: bash -l {0}
shell: bash -el {0}
run: |
conda info
conda list
pip list
- name: Run tests
shell: bash -l {0}
shell: bash -el {0}
run: xvfb-run --auto-servernum pytest -vv -s --full-trace --color=yes --cov=qtconsole qtconsole
env:
QT_API: ${{ matrix.QT_LIB }}
PYTEST_QT_API: ${{ matrix.QT_LIB }}
- name: Upload coverage to coveralls
if: matrix.PYTHON_VERSION == '3.8'
shell: bash -l {0}
shell: bash -el {0}
run: coveralls
15 changes: 8 additions & 7 deletions .github/workflows/macos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,24 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v3
- 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 }}
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
channels: conda-forge
channel-priority: strict
channel-priority: true
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install package dependencies
shell: bash -l {0}
shell: bash -el {0}
run: mamba env update --file requirements/environment.yml
- name: Show environment information
shell: bash -l {0}
shell: bash -el {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -l {0}
shell: bash -el {0}
run: pytest -vv --color=yes --cov=qtconsole qtconsole
19 changes: 9 additions & 10 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,23 @@ jobs:
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Conda
uses: conda-incubator/setup-miniconda@v2
- name: Install Conda and install package dependencies
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: false
auto-activate-base: false
python-version: ${{ matrix.PYTHON_VERSION }}
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
channels: conda-forge
channel-priority: strict
- name: Install package dependencies
shell: bash -l {0}
run: mamba env update --file requirements/environment.yml
channel-priority: true
python-version: ${{ matrix.PYTHON_VERSION }}
environment-file: requirements/environment.yml # Need to set up dependencies in the same step due to https://github.com/conda-incubator/setup-miniconda/issues/371
- name: Show environment information
shell: bash -l {0}
shell: bash -el {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -l {0}
shell: bash -el {0}
run: pytest -vv --color=yes --cov=qtconsole qtconsole
Loading