Skip to content

Commit

Permalink
A bit of cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ciobanu committed Feb 28, 2024
1 parent a75feac commit c53eade
Showing 1 changed file with 45 additions and 34 deletions.
79 changes: 45 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
name: CI

#on: [push, pull_request]
on: workflow_dispatch
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"]

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: Run tests
shell: bash -l {0}
run: |
pip install -e .
python selftest.py
# - 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

build:
name: "Build wheels on ${{ matrix.os }} ${{ matrix.cibw_archs }}"
Expand All @@ -39,24 +41,33 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-2019
cibw_archs: "AMD64 ARM64"
- os: macos-11
cibw_archs: "x86_64" # arm64" # No freetype on non-native platforms
- os: "ubuntu-20.04"
cibw_archs: "aarch64"
- os: "ubuntu-20.04"
cibw_archs: "x86_64"
#- os: windows-2019
# cibw_archs: "AMD64 ARM64"
#- os: macos-12
# cibw_archs: "x86_64"
#- os: macos-13
# cibw_archs: "arm64"
- os: macos-14
cibw_archs: "universal2"
#- os: "ubuntu-20.04"
# cibw_archs: "aarch64"
#- os: "ubuntu-20.04"
# cibw_archs: "x86_64"

steps:
- uses: actions/checkout@v4

- name: Set up QEMU
- name: Set up QEMU for Linux.
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Maker sure pipx is installed for arm64 macOS.
if: runner.platform == 'darwin' and runner.release >= 14
- run: brew install pipx
- run: pipx ensurepath

- name: Build wheels
uses: pypa/[email protected]
env:
Expand Down

0 comments on commit c53eade

Please sign in to comment.