Skip to content

PR: Add backend for Pixi #195

PR: Add backend for Pixi

PR: Add backend for Pixi #195

Workflow file for this run

# Run the project's test suite
name: Linux tests
on: [pull_request, push]
concurrency:
group: linux-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Test Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 25
env:
PYTHON_VERSION: ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.11']
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Create test environment
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
environment-file: requirements/environment.yml
auto-activate-base: false
- name: Install Micromamba and setup as executable backend
shell: bash -l {0}
run: |
curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/1.5.10 | tar -xvj bin/micromamba
echo "ENV_BACKEND_EXECUTABLE=${{ github.workspace }}/bin/micromamba" >> $GITHUB_ENV
- name: Install Pixi
shell: bash -l {0}
run: |
# This script installs Pixi in ~/.pixi/bin
curl -fsSL https://pixi.sh/install.sh | sh
- name: Install envs-manager
shell: bash -l {0}
run: |
pip install -e .
- name: Run tests
shell: bash -l {0}
run: |
pytest --cov-report xml --cov=envs_manager --color=yes -vv -x
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true