From 4625ae3e577434d36f044dc00cfe696531d1a97b Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Mon, 19 Feb 2024 11:38:09 +0100 Subject: [PATCH 1/2] CI: Run tests on macOS 14 and Windows - macos-13: macOS Intel runners - macos-14: macOS ARM runners - windows-latest: Windows Server runners --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 88a35574..52d8b703 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -27,6 +27,10 @@ jobs: include: - os: macos-13 python-version: '3.11' + - os: macos-14 + python-version: '3.11' + - os: windows-latest + python-version: '3.11' steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 From 94fec153511c4e7cb1f7c2ffe3493e02036709bb Mon Sep 17 00:00:00 2001 From: Ghislain Vaillant Date: Tue, 2 Apr 2024 17:04:04 +0200 Subject: [PATCH 2/2] CI: Add step to fix pipx perms on macOS 14 --- .github/workflows/test.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 52d8b703..e9fb7af9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,6 +37,15 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: pip + - name: Fix pipx permissions + if: matrix.os == 'macos-14' + run: | + for d in "$PIPX_HOME" "$PIPX_BIN_DIR" ; do + if [[ -n "$d" ]] ; then + sudo mkdir -p "$d" + sudo chown -R $(id -u) "$d" + fi + done - name: Install Hatch run: pipx install hatch - name: Run tests