MilesCranmer commited on
Commit
0a85481
1 Parent(s): 5486602

Switch to mamba

Browse files
Files changed (2) hide show
  1. .github/workflows/CI_conda.yml +6 -4
  2. .gitignore +1 -0
.github/workflows/CI_conda.yml CHANGED
@@ -57,20 +57,22 @@ jobs:
57
  - name: "Set up Conda"
58
  uses: conda-incubator/setup-miniconda@v2
59
  with:
 
 
60
  auto-activate-base: true
61
- auto-update-conda: true
62
  channels: conda-forge
63
  python-version: ${{ matrix.python-version }}
 
64
  - name: "Install PySR"
65
  run: |
66
- python -m pip install --upgrade pip
67
- conda install -c conda-forge $(cat requirements.txt | grep -v "julia" | xargs echo | sed "s/_/-/g")
68
  python setup.py install
69
  python -c 'import pysr; pysr.install()'
70
  - name: "Ensure that static libpython warning appears"
71
  run: python test/test_static_libpython_warning.py
72
  - name: "Install Coverage tool"
73
- run: pip install coverage coveralls
74
  - name: "Run tests"
75
  run: coverage run --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
76
  shell: bash
 
57
  - name: "Set up Conda"
58
  uses: conda-incubator/setup-miniconda@v2
59
  with:
60
+ miniforge-variant: Mambaforge
61
+ miniforge-version: latest
62
  auto-activate-base: true
 
63
  channels: conda-forge
64
  python-version: ${{ matrix.python-version }}
65
+ activate-environment: test
66
  - name: "Install PySR"
67
  run: |
68
+ mamba install -c conda-forge pip $(cat requirements.txt | grep -v "julia" | xargs echo | sed "s/_/-/g")
69
+ python -m pip install julia
70
  python setup.py install
71
  python -c 'import pysr; pysr.install()'
72
  - name: "Ensure that static libpython warning appears"
73
  run: python test/test_static_libpython_warning.py
74
  - name: "Install Coverage tool"
75
+ run: mamba install -c conda-forge coverage coveralls
76
  - name: "Run tests"
77
  run: coverage run --source=pysr --omit='*/feynman_problems.py' -m unittest test.test
78
  shell: bash
.gitignore CHANGED
@@ -14,3 +14,4 @@ dist
14
  pysr/.vs/
15
  pysr.egg-info
16
  Manifest.toml
 
 
14
  pysr/.vs/
15
  pysr.egg-info
16
  Manifest.toml
17
+ workflow