Skip to content

Commit

Permalink
Create conda_env.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
valentina-s authored Jun 10, 2024
1 parent 831a0ea commit 7b8dc87
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/conda_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Conda Environment

on:
# To run manually
workflow_dispatch

jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: conda-forge, defaults
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: true
activate-environment: scipy
python-version: 3.10

- name: Install conda packages
shell: pwsh
run: conda install scipy

- name: Hello World
run: |
python -c "import scipy as sp; print('Scipy version: '+sp.__version__)"

0 comments on commit 7b8dc87

Please sign in to comment.