Skip to content

Commit

Permalink
[ci] install inih on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHsiao1 committed Jan 27, 2024
1 parent 2d915fd commit 1322694
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 9 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,34 @@ on:
workflow_dispatch:

jobs:

job1:
name: Test on ubuntu
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
python_version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install pytest psutil
- name: Test
run: |
pytest -v
job2:
name: Test
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-13, windows-2019]
os: [macos-12, macos-13]
python_version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -28,15 +50,16 @@ jobs:
python -m pip install pytest psutil
- name: Test
run: |
brew install inih
pytest -v
job2:
name: Test on ubuntu
job3:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
python_version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
os: [windows-2019]
python_version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
35 changes: 31 additions & 4 deletions .github/workflows/test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:

jobs:
job1:
name: Test package
name: Test package on ubuntu
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-13, windows-2019]
os: [ubuntu-22.04]
python_version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -35,11 +35,38 @@ jobs:
PYEXIV2_MODULE: pyexiv2

job2:
name: Test package on ubuntu
name: Test package
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
os: [macos-12, macos-13]
python_version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install pyexiv2==2.11.0
python -m pip install pytest psutil
- name: Test
run: |
brew install inih
python -c "import os; os.remove('pyexiv2/__init__.py')" # Disable pyexiv2 in the repository, to use only the installed pyexiv2
python -c "from pyexiv2 import Image; print(Image.__doc__)"
pytest -v
env:
PYEXIV2_MODULE: pyexiv2

job3:
name: Test package
strategy:
fail-fast: false
matrix:
os: [windows-2019]
python_version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
Expand Down

0 comments on commit 1322694

Please sign in to comment.