Fix workflow, numpy install, and pytest bug in github action workflow… #390
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 | |
python-version: 3.11 | |
environment-name: test | |
- name: Install dependencies | |
run: | | |
conda install -n test numpy=1.26 pytest pip | |
conda run -n test pip install -e . | |
- name: Run tests | |
run: | | |
conda run -n test pytest |