File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,31 @@ jobs:
17
17
python-version : ["3.10", "3.12"]
18
18
19
19
steps :
20
- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20
+
21
+ - name : Checkout repository
22
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23
+
21
24
- name : Set up Python ${{ matrix.python-version }}
22
25
uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
23
26
with :
24
27
python-version : ${{ matrix.python-version }}
28
+
25
29
- name : Install dependencies
26
30
run : |
27
31
python -m pip install --upgrade pip setuptools wheel
28
32
python -m pip install --upgrade PyYAML
33
+
29
34
- name : Install dependencies (macOS)
30
35
run : |
31
36
brew install subversion mercurial
32
37
if : matrix.os == 'macos-latest'
38
+
39
+ - name : Install dependencies (Ubuntu)
40
+ run : |
41
+ sudo apt-get update
42
+ sudo apt-get install -y subversion mercurial
43
+ if : startsWith(matrix.os, 'ubuntu')
44
+
33
45
- name : Test with pytest
34
46
run : |
35
47
pip install --upgrade .[test]
Original file line number Diff line number Diff line change 19
19
os .path .dirname (os .path .dirname (__file__ )), 'test_workspace'
20
20
)
21
21
22
- CI = os .environ .get ('CI' ) == 'true' # Travis CI / Github actions set: CI=true
23
22
svn = which ('svn' )
24
23
hg = which ('hg' )
25
24
if svn :
@@ -342,7 +341,6 @@ def test_validate(self):
342
341
expected = get_expected_output ('validate_bad' )
343
342
self .assertEqual (output , expected )
344
343
345
- @unittest .skipIf (CI , 'Cannot run on CI' )
346
344
@unittest .skipIf (not svn , '`svn` was not found' )
347
345
@unittest .skipIf (not hg , '`hg` was not found' )
348
346
def test_validate_svn_and_hg (self ):
You can’t perform that action at this time.
0 commit comments