Skip to content

Commit 443f2e9

Browse files
authored
Gh actions tests (#9)
- Different python version specs are moved from `tox.ini` to CI config. - Flake8 complained about some test syntax, so that's fixed. - drop testing for 3.4 and 3.5
1 parent 7b3a23c commit 443f2e9

File tree

4 files changed

+30
-39
lines changed

4 files changed

+30
-39
lines changed

.github/workflows/python-package.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install system dependencies
19+
run: |
20+
sudo gem install chef-utils -v 16.6.14
21+
sudo gem install mdl
22+
- name: Install dependencies
23+
run: python -m pip --disable-pip-version-check install tox
24+
- name: Test with tox
25+
run: tox

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

test_gh_links.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ def test_non_issue_with_repo(self):
9292

9393
def test_escaped_issue(self):
9494
self.assertMarkdownRenders(
95-
'Issue \#123.',
95+
'Issue \\#123.',
9696
'<p>Issue #123.</p>',
9797
)
9898

9999
def test_escaped_issue_with_repo(self):
100100
self.assertMarkdownRenders(
101-
'Issue Organization/Repo\#123.',
101+
'Issue Organization/Repo\\#123.',
102102
'<p>Issue Organization/Repo#123.</p>',
103103
)
104104

@@ -127,7 +127,7 @@ def test_mention_complex_user(self):
127127

128128
def test_escape_mention_user(self):
129129
self.assertMarkdownRenders(
130-
'User \@foo.',
130+
'User \\@foo.',
131131
'<p>User @foo.</p>',
132132
)
133133

@@ -149,7 +149,7 @@ def test_mention_repo_complex(self):
149149

150150
def test_escape_mention_repo(self):
151151
self.assertMarkdownRenders(
152-
'User \@foo/bar.',
152+
'User \\@foo/bar.',
153153
'<p>User @foo/bar.</p>',
154154
)
155155

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27, py34, py35, py36, pypy, pypy3, flake8, docs
2+
envlist = flake8, docs
33

44
[testenv]
55
downloadcache = {toxworkdir}/cache

0 commit comments

Comments
 (0)