Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI install for Mac M1 #933

Merged
merged 8 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading