Skip to content

Commit

Permalink
Update pytest.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin committed May 12, 2024
1 parent dc62ebf commit 1430dd1
Showing 1 changed file with 38 additions and 35 deletions.
73 changes: 38 additions & 35 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
shell: bash
run: |
set -e
pip install resvg_py --find-links dist --force-reinstall
pip install uv
uv pip install resvg_py --find-links dist --force-reinstall
pip install pytest
pytest
- name: pytest
Expand Down Expand Up @@ -107,43 +108,45 @@ jobs:
shell: bash
run: |
set -e
pip install resvg_py --find-links dist --force-reinstall
pip install uv
uv pip install resvg_py --find-links dist --force-reinstall
pip install pytest
pytest
# macos:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
# matrix:
# platform:
# - runner: macos-latest
# target: x86_64
# - runner: macos-14
# target: aarch64
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-macos-${{ matrix.platform.target }}
# path: dist
# - name: pytest
# if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
# shell: bash
# run: |
# set -e
# pip install resvg_py --find-links dist --force-reinstall
# pip install pytest
# pytest
macos:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: macos-latest
target: x86_64
- runner: macos-14
target: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
path: dist
- name: pytest
if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
shell: bash
run: |
set -e
pip install uv
uv pip install resvg_py --find-links dist --force-reinstall
pip install pytest
pytest
sdist:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1430dd1

Please sign in to comment.