From 40a8e485481ce72f17f0909d75f7844d8e1c393d Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Thu, 9 Jan 2025 21:03:27 +0100 Subject: [PATCH] Fix setup of MacOS targets in GitHub Actions workflows --- .github/workflows/publish.yml | 4 ++++ .github/workflows/test.yml | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 032010a..8e57517 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -54,6 +54,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-apple-darwin - name: Build manylinux wheels uses: pypa/cibuildwheel@v2.22.0 env: @@ -73,6 +75,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-apple-darwin - name: Build manylinux wheels uses: pypa/cibuildwheel@v2.22.0 env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 689ab6f..7303ac8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,8 +34,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - submodules: recursive - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: @@ -47,7 +45,7 @@ jobs: - name: Build extension run: python -m pip install --no-build-isolation -e . -v - name: Test extension with coverage - run: python -m coverage run -m unittest discover -vv + run: python -m coverage run -m unittest sphinxcontrib.svgbob.tests -vv - name: Export coverage reports run: python -m coverage xml - name: Upload coverage statistics @@ -85,8 +83,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - submodules: recursive - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: @@ -98,7 +94,7 @@ jobs: - name: Build extension run: python -m pip install --no-build-isolation -e . -v - name: Test extension with coverage - run: python -m coverage run -m unittest discover -vv + run: python -m coverage run -m unittest sphinxcontrib.svgbob.tests -vv - name: Export coverage reports run: python -m coverage xml - name: Upload coverage statistics @@ -148,7 +144,7 @@ jobs: # - name: Build extension # run: python setup.py build_ext --inplace --debug # - name: Test extension with coverage - # run: python -m coverage run -m unittest discover -vv + # run: python -m coverage run -m unittest sphinxcontrib.svgbob.tests -vv # - name: Export coverage reports # run: python -m coverage xml # - name: Upload coverage statistics