PR: Fix getting Pixi environment info on Posix systems #1788
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Macos tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 3.* | |
| pull_request: | |
| branches: | |
| - master | |
| - 3.* | |
| concurrency: | |
| group: macos-tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| macos: | |
| name: macOS - Py${{ matrix.PYTHON_VERSION }} | |
| runs-on: macos-latest | |
| env: | |
| CI: True | |
| PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | |
| RUNNER_OS: 'macos' | |
| USE_CONDA: 'true' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| PYTHON_VERSION: ['3.9', '3.12'] | |
| timeout-minutes: 25 | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v1 | |
| - name: Install Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| activate-environment: test | |
| auto-update-conda: true | |
| auto-activate-base: false | |
| channels: conda-forge | |
| python-version: ${{ matrix.PYTHON_VERSION }} | |
| - name: Install package dependencies | |
| shell: bash -l {0} | |
| run: | | |
| conda install --file requirements/posix.txt -y -q | |
| - name: Install test dependencies | |
| shell: bash -l {0} | |
| run: conda install --file requirements/tests.txt -y -q | |
| - name: Install Package | |
| shell: bash -l {0} | |
| run: pip install -e . | |
| - name: Create environment with Pixi | |
| shell: bash -l {0} | |
| run: | | |
| curl -fsSL https://pixi.sh/install.sh | sh | |
| cd ~ | |
| ~/.pixi/bin/pixi init pixi-test | |
| cd pixi-test | |
| ~/.pixi/bin/pixi add python | |
| - name: Show environment information | |
| shell: bash -l {0} | |
| run: | | |
| conda info | |
| conda list | |
| # - name: Setup Remote SSH Connection | |
| # uses: mxschmitt/action-tmate@v3 | |
| # timeout-minutes: 60 | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| pytest spyder_kernels --color=yes --cov=spyder_kernels -vv || \ | |
| 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@v4 | |
| with: | |
| fail_ci_if_error: false | |
| verbose: true |