Skip to content

Commit 6bc6a9c

Browse files
authored
Merge pull request #17 from testing-cabal/jelmer-patch-1
Create python-package.yml
2 parents db07775 + 9dfa2cc commit 6bc6a9c

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ["3.9", "3.10", "3.11"]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install ruff testtools pbr
26+
python -m pip install ".[test]"
27+
- name: Lint with ruff
28+
run: |
29+
ruff check .
30+
- name: Test with testtools
31+
run: |
32+
python -m testtools.run testresources.tests.test_suite

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ classifier =
2020

2121
[extras]
2222
test =
23-
six
2423
docutils
2524
fixtures
2625
testtools

testresources/tests/test_optimising_test_suite.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# license.
1616
#
1717

18-
import six
1918
import testtools
2019
import random
2120
import testresources
@@ -538,8 +537,8 @@ def _permute_four(self, cases):
538537
permutations.append([case4, case1, case3, case2])
539538
return permutations
540539

541-
@testtools.skipIf(six.PY3, "Flaky on Python 3, see LP #1645008")
542540
def testBasicSortTests(self):
541+
self.skipTest("flaky, see LP #1645008")
543542
# Test every permutation of inputs, with legacy tests.
544543
# Cannot use equal costs because of the use of
545544
# a 2*optimal heuristic for sorting: with equal

0 commit comments

Comments
 (0)