Skip to content

Commit

Permalink
Add CI install for Mac M1 (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein authored Jun 4, 2024
1 parent 20c9ac4 commit 0bb98c0
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 179 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/mac_m1_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# This is a basic workflow to help you get started with Actions

name: Mac

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
pull_request:
merge_group:

# run the pipeline on the 0th minute of the 0th hour of day 1 and 15 every month
schedule:
- cron: '0 0 1,15 * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
mac_m1_install:
# The type of runner that the job will run on
runs-on: macos-14

# Specify the python versions to test
strategy:
matrix:
python-version: ["3.11"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@v2
env:
CONDA_CHANNELS: conda-forge
CONDA_SUBDIR: osx-64
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}

- name: Install poetry
shell: bash -el {0}
run: conda install poetry

- name: Update setuptools
shell: bash -el {0}
run:
conda update setuptools

- name: install packages with conda
shell: bash -el {0}
run: |
conda install -c conda-forge astromatic-source-extractor astromatic-scamp astromatic-swarp astromatic-psfex astrometry gsl
swarp -v
scamp -v
sex -v
solve-field --version
pip install --upgrade pip setuptools
python -m pip install --upgrade poetry coveralls
poetry install
# Make sure the doc tests are up to date
- name: Run doc tests
shell: bash -el {0}
run: |
poetry run make -C docs/ doctest
Loading

0 comments on commit 0bb98c0

Please sign in to comment.