Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
ci: Enable matrix builds on ARM and Intel (#138)
Browse files Browse the repository at this point in the history
This change introduces a non-required ARM build (on an M1 Mac mini running Monterey) and makes the HEIF resize test as an expected failure (see inseven/incontext#139).
  • Loading branch information
jbmorley authored Aug 25, 2021
1 parent 22b6626 commit 2af7c48
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,31 @@ on:
jobs:
tests:

runs-on: Ubuntu-20.04
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
experimental: [false]
include:
- os: macos-monterey-m1
experimental: true

steps:

- name: Ensure Homebrew is on the path (must be installed)
if: matrix.os == 'macos-monterey-m1'
run:
echo "/opt/homebrew/bin" >> $GITHUB_PATH

- name: Checkout source
uses: actions/checkout@v2
with:
submodules: recursive
lfs: true

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Run tests
run: |
python3 -u incontext --verbose tests
3 changes: 3 additions & 0 deletions tests/test_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ def test_evaluate_tests(self):
self.assertEqual(gallery.evaluate_tests(tests, {"basename": "IMG_3875.jpeg"}), "*")
self.assertEqual(gallery.evaluate_tests(tests, {"basename": "IMG_3875.tiff"}), "image/jpeg")

# TODO: Re-enable HEIF tests #139
# https://github.com/inseven/incontext/issues/139
@unittest.expectedFailure
@common.with_temporary_directory
def test_resize_heic(self):

Expand Down

0 comments on commit 2af7c48

Please sign in to comment.