@@ -18,25 +18,20 @@ jobs:
1818
1919 steps :
2020 - uses : actions/checkout@v4
21- - name : Set up Python ${{ matrix.python-version }}
22- uses : actions/setup-python@v5
23- with :
24- python-version : ${{ matrix.python-version }}
25- # Confirm that the `python` maps to the version we just installed.
26- # PowerShell on Windows does this differently than the Unix shells.
27- - run : which python ; python --version ; which pip ; pip --version
28- if : matrix.os != 'windows-latest'
29- - run : get-command python ; python --version ; get-command pip ; pip --version
30- if : matrix.os == 'windows-latest'
21+ - uses : astral-sh/setup-uv@v5
3122 - run : git --version
32- # Make sure Subversion and Mercurial are installed on Windows and macOS.
33- - run : sudo apt-get update && sudo apt-get install -y subversion mercurial
23+ # Make sure Subversion (including `svnadmin`) and Mercurial are installed
24+ # on Windows and macOS. I'd prefer `uv tool install mercurial`, but the
25+ # `hg` binary that that installs crashes on Windows for some reason. We
26+ # don't need Mercurial to use the same Python version that we're using.
27+ # Also Choco and WinGet seem to fail to put `hg` in the PATH for some
28+ # reason.
29+ - run : pip install mercurial
30+ - run : sudo apt-get update && sudo apt-get install -y subversion
3431 if : matrix.os == 'ubuntu-latest'
35- - run : brew install subversion mercurial
32+ - run : brew install subversion
3633 if : matrix.os == 'macOS-latest'
37- - run : choco install -y --no-progress sliksvn && pip install mercurial
34+ - run : choco install -y --no-progress sliksvn
3835 if : matrix.os == 'windows-latest'
39- # Install test dependencies, like flake8.
40- - run : pip install -r ./requirements-dev.txt
4136 # Run tests.
42- - run : python test.py -v
37+ - run : uv run -- python ${{ matrix.python-version }} test.py -v
0 commit comments