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

Fix CI for linux #1605

Merged
merged 5 commits into from
Jul 6, 2024
Merged
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
28 changes: 21 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
max-parallel: 4
matrix:
# os: [macos-14, ubuntu-latest]
os: [macos-14]
os: [macos-14, ubuntu-latest]
# os: [macos-14]
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
Expand All @@ -19,11 +19,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev_requirements.txt
pip install -r requirements.txt
# virtual env must be used on Linux to avoid issue with setuptools
# this action creates and activates a virtual env while also caching it
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
with:
requirement_files: "*requirements.txt"
- uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
# the package installation will only be executed when the
# requirements-files have changed.
- run: pip install -r requirements.txt
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- run: pip install -r dev_requirements.txt
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
# - name: Install dependencies
# run: |
# python3 -m pip install --upgrade pip
# python3 -m pip install -r dev_requirements.txt
# python3 -m pip install -r requirements.txt
- name: Install exiftool
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand Down
Loading