Skip to content

Commit

Permalink
Initialize to conda environment for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Mar 3, 2024
1 parent 46db1ec commit 85e416b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
if: ${{ ! startsWith(matrix.build, 'Anaconda') }}
- name: Install Matplotlib (pip)
if: ${{ ! startsWith(matrix.build, 'Anaconda') }}
run: pip install matplotlib
Expand All @@ -67,6 +68,12 @@ jobs:
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
- run: rustup target add ${{ matrix.target }}
- run: cargo build --verbose
- run: cargo test tests --verbose
- run: cargo build -vv
- run: cargo test
if: ${{ ! startsWith(matrix.build, 'Anaconda') }}
- run: cargo run --example a_simple_example
if: ${{ ! startsWith(matrix.build, 'Anaconda') }}
- name: Run example with Anaconda
run: |
eval "$($CONDA/bin/conda shell.bash activate)"
cargo run --example a_simple_example

0 comments on commit 85e416b

Please sign in to comment.