Skip to content

Commit

Permalink
Install mercurial via pip
Browse files Browse the repository at this point in the history
Because installing via Homebrew keeps failing on GitHub Actions
  • Loading branch information
jwodder committed Dec 11, 2023
1 parent c559525 commit 55217ca
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install Mercurial
# Mercurial seems to be broken on PyPy, so we need to install it before
# overriding the default Python.
if: startsWith(matrix.os, 'macos-')
run: python -m pip install mercurial

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -59,14 +65,6 @@ jobs:
python -m pip install --upgrade --upgrade-strategy=eager tox
virtualenv --upgrade-embed-wheels
- name: Install Mercurial
if: startsWith(matrix.os, 'macos-')
run: |
brew update
brew install mercurial
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "1"

- name: Run tests with coverage
if: startsWith(matrix.toxenv, 'py')
run: tox -e py -- -vv --cov-report=xml
Expand Down

0 comments on commit 55217ca

Please sign in to comment.