File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,20 @@ jobs:
31
31
32
32
steps :
33
33
- uses : actions/checkout@v3
34
- - name : Setup Python ${{ matrix.python }}
34
+ - name : Set up Python ${{ matrix.python }}
35
35
uses : actions/setup-python@v4
36
+ if : " !endsWith(matrix.python, '-dev')"
37
+ with :
38
+ python-version : ${{ matrix.python }}
39
+ - name : Set up Python ${{ matrix.python }} (deadsnakes)
40
+ uses : deadsnakes/action@v2.1.1
41
+ if : " endsWith(matrix.python, '-dev')"
36
42
with :
37
43
python-version : ${{ matrix.python }}
38
44
- name : Install dependencies
39
45
run : |
40
46
python -m pip install --upgrade pip
41
- python -m pip install --upgrade pytest
47
+ python -m pip install .[test]
42
48
python -m pip install "Sphinx @ git+https://github.com/sphinx-doc/sphinx"
43
49
44
50
- name : Test with pytest
Original file line number Diff line number Diff line change 6
6
:license: BSD, see LICENSE for details.
7
7
"""
8
8
9
- import pytest
9
+ from pathlib import Path
10
10
11
- from sphinx . testing . path import path
11
+ import pytest
12
12
13
13
pytest_plugins = 'sphinx.testing.fixtures'
14
14
15
15
16
16
@pytest .fixture (scope = 'session' )
17
17
def rootdir ():
18
- return path (__file__ ).parent . abspath () / 'roots'
18
+ return Path (__file__ ).resolve (). parent / 'roots'
You can’t perform that action at this time.
0 commit comments