Skip to content

Commit

Permalink
Merge pull request #12919 from mayeut/ci-mac-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Aug 30, 2024
2 parents ac63d0f + 964229e commit b989e6e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
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 @@ -110,7 +112,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 @@ -133,8 +135,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')
werkzeug
wheel
tomli-w
Expand Down

0 comments on commit b989e6e

Please sign in to comment.