Skip to content

Commit

Permalink
Testing building both architectures on macos-11.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ciobanu committed Feb 27, 2024
1 parent c86c1a6 commit 12a0789
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,35 @@ name: CI
on: [workflow_dispatch, push]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest, macos-latest, windows-latest]
#python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-14]
#python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4
#test:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# #os: [ubuntu-latest, macos-latest, windows-latest]
# #python-version: ["3.9", "3.10", "3.11", "3.12"]
# os: [macos-14]
# #python-version: ["3.9", "3.10", "3.11", "3.12"]
# python-version: ["3.11"]

- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
python-version: ${{ matrix.python-version }}
environment-file: ci/environment.yaml
activate-environment: test-environment
# steps:
# - uses: actions/checkout@v4

# - name: Setup Conda Environment
# uses: conda-incubator/setup-miniconda@v2
# with:
# miniforge-variant: Mambaforge
# miniforge-version: latest
# use-mamba: true
# python-version: ${{ matrix.python-version }}
# environment-file: ci/environment.yaml
# activate-environment: test-environment

- name: Run tests
shell: bash -l {0}
run: |
pip install -e .
python selftest.py
# - name: Run tests
# shell: bash -l {0}
# run: |
# pip install -e .
# python selftest.py

build:
name: "Build wheels on ${{ matrix.os }} ${{ matrix.cibw_archs }}"
Expand All @@ -43,7 +44,7 @@ jobs:
#- os: windows-2019
# cibw_archs: "AMD64 ARM64"
- os: macos-11
cibw_archs: "x86_64" # arm64" # No freetype on non-native platforms
cibw_archs: "x86_64 arm64"
#- os: "ubuntu-20.04"
# cibw_archs: "aarch64"
#- os: "ubuntu-20.04"
Expand Down

0 comments on commit 12a0789

Please sign in to comment.