Skip to content

only macos

only macos #10

Workflow file for this run

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.12] # Only test on Python 3.12
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
- name: Install additional dependencies
run: |
conda activate tools21cm
conda install -y pip
pip install .
- name: Run tests
run: |
conda activate tools21cm
pytest