Skip to content

Commit e47aac4

Browse files
Enabled tests to run hvg and svn test cases.
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
1 parent 83d11dc commit e47aac4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,31 @@ jobs:
1717
python-version: ["3.10", "3.12"]
1818

1919
steps:
20-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
21+
- name: Checkout repository
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
23+
2124
- name: Set up Python ${{ matrix.python-version }}
2225
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2326
with:
2427
python-version: ${{ matrix.python-version }}
28+
2529
- name: Install dependencies
2630
run: |
2731
python -m pip install --upgrade pip setuptools wheel
2832
python -m pip install --upgrade PyYAML
33+
2934
- name: Install dependencies (macOS)
3035
run: |
3136
brew install subversion mercurial
3237
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+
3345
- name: Test with pytest
3446
run: |
3547
pip install --upgrade .[test]

test/test_commands.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
os.path.dirname(os.path.dirname(__file__)), 'test_workspace'
2020
)
2121

22-
CI = os.environ.get('CI') == 'true' # Travis CI / Github actions set: CI=true
2322
svn = which('svn')
2423
hg = which('hg')
2524
if svn:
@@ -342,7 +341,6 @@ def test_validate(self):
342341
expected = get_expected_output('validate_bad')
343342
self.assertEqual(output, expected)
344343

345-
@unittest.skipIf(CI, 'Cannot run on CI')
346344
@unittest.skipIf(not svn, '`svn` was not found')
347345
@unittest.skipIf(not hg, '`hg` was not found')
348346
def test_validate_svn_and_hg(self):

0 commit comments

Comments
 (0)