Update python-package-conda.yml #385
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: Python Package using Conda | |
| on: [push] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Miniconda | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| auto-update-conda: true | |
| miniforge-variant: Mambaforge # Faster solver | |
| - name: Install dependencies | |
| run: | | |
| conda install -n testenv numpy=1.26 pytest pip | |
| conda run -n testenv pip install -e . | |
| - name: Run tests | |
| run: | | |
| conda run -n testenv pytest |