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

CI: Test on macOS arm64 #12919

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
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
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
pull_request:
schedule:
- cron: 0 0 * * MON # Run every Monday at 00:00 UTC
workflow_dispatch:
# allow manual runs on branches without a PR

env:
# The "FORCE_COLOR" variable, when set to 1,
Expand Down Expand Up @@ -107,7 +109,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-12]
os: [ubuntu-latest, macos-12, macos-latest]
python:
- "3.8"
- "3.9"
Expand All @@ -130,8 +132,13 @@ jobs:
sudo apt-get install bzr

- name: Install MacOS dependencies
if: matrix.os == 'macos-12'
run: brew install breezy
if: runner.os == 'macOS'
run: |
DEPS=breezy
if ! which svn; then
DEPS="${DEPS} subversion"
fi
brew install ${DEPS}

- run: pip install nox

Expand Down
Empty file.
8 changes: 8 additions & 0 deletions tests/functional/test_uninstall_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
tests specific to uninstalling --user installs
"""

import platform
import sys
from os.path import isdir, isfile, normcase

import pytest
Expand Down Expand Up @@ -74,6 +76,12 @@ def test_uninstall_from_usersite_with_dist_in_global_site(
dist_info_folder = script.base_path / script.site_packages / "pkg-0.1.dist-info"
assert isdir(dist_info_folder)

@pytest.mark.xfail(
sys.platform == "darwin"
and platform.machine() == "arm64"
and sys.version_info[:2] in {(3, 8), (3, 9)},
reason="Unexpected egg-link install path",
)
def test_uninstall_editable_from_usersite(
self, script: PipTestEnvironment, data: TestData
) -> None:
Expand Down
6 changes: 4 additions & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ pytest-rerunfailures
pytest-xdist
scripttest
setuptools
virtualenv < 20.0 ; python_version < '3.10'
virtualenv >= 20.0 ; python_version >= '3.10'
# macOS (darwin) arm64 always uses virtualenv >= 20.0
# for other platforms, it depends on python version
virtualenv < 20.0 ; python_version < '3.10' and (sys_platform != 'darwin' or platform_machine != 'arm64')
virtualenv >= 20.0 ; python_version >= '3.10' or (sys_platform == 'darwin' and platform_machine == 'arm64')
uranusjr marked this conversation as resolved.
Show resolved Hide resolved
werkzeug
wheel
tomli-w
Expand Down
Loading