Skip to content

Commit 7b8dc87

Browse files
authored
Create conda_env.yml
1 parent 831a0ea commit 7b8dc87

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/conda_env.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Conda Environment
2+
3+
on:
4+
# To run manually
5+
workflow_dispatch
6+
7+
jobs:
8+
setup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: conda-incubator/setup-miniconda@v2
12+
with:
13+
miniconda-version: "latest"
14+
channels: conda-forge, defaults
15+
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
16+
auto-update-conda: true
17+
auto-activate-base: true
18+
activate-environment: scipy
19+
python-version: 3.10
20+
21+
- name: Install conda packages
22+
shell: pwsh
23+
run: conda install scipy
24+
25+
- name: Hello World
26+
run: |
27+
python -c "import scipy as sp; print('Scipy version: '+sp.__version__)"

0 commit comments

Comments
 (0)