auto-activate-base: true #15
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- master # Trigger the workflow on push to the master branch | |
pull_request: | |
branches: | |
- master # Trigger the workflow on pull requests to the master branch | |
jobs: | |
test: | |
timeout-minutes: 60 # Set a 60-minute timeout for the entire job | |
strategy: | |
matrix: | |
os: [macos-latest] | |
python-version: [3.8] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" # Ensure Miniconda is installed | |
python-version: ${{ matrix.python-version }} | |
auto-update-conda: true | |
environment-file: environment.yml | |
activate-environment: tools21cm | |
auto-activate-base: true | |
- name: Install additional dependencies | |
run: | | |
conda activate tools21cm | |
conda install -y pip | |
pip install . | |
- name: Run tests | |
run: | | |
conda activate tools21cm | |
pytest |