Skip to content

Commit 85d9ea6

Browse files
authored
Move to Github Actions for build and test (#36)
* adjust setup python * remove with os line * try referencing matrix.os from the runs-on * remove optional install reqs line; it's bash and doesn't work on windows * remove travis/tox in favor of github actions * add history notes
1 parent f23e9e9 commit 85d9ea6

File tree

6 files changed

+17
-102
lines changed

6 files changed

+17
-102
lines changed

.github/workflows/python-package.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,36 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
15+
1516
strategy:
1617
matrix:
1718
os: [ubuntu-latest, macos-latest, windows-latest]
1819
python-version: [3.5, 3.6, 3.7, 3.8]
1920

2021
steps:
2122
- uses: actions/checkout@v2
22-
- name: Set up Python ${{ matrix.python-version }}
23+
24+
- name: Set up Python ${{ matrix.python-version }} for ${{ matrix.os }}
2325
uses: actions/setup-python@v2
2426
with:
2527
python-version: ${{ matrix.python-version }}
28+
29+
- name: Display Python version
30+
run: python -c "import sys; print(sys.version)"
31+
2632
- name: Install dependencies
2733
run: |
2834
python -m pip install --upgrade pip
2935
pip install flake8 nose
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36+
3137
- name: Lint
3238
run: |
3339
# stop the build if there are Python syntax errors or undefined names
3440
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3541
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3642
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
43+
3744
- name: Test
3845
run: |
3946
nosetests --with-doctest --doctest-extension=rst

.travis.yml

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

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
- Support up to Python 3.8
55
- Drop support for Python 2, 3.4
66

7+
Dev-only:
8+
9+
- Setup Github Actions for package publishing
10+
- Setup Github Actions for build and testing
11+
- Move off Travis and Tox in favor of Github Actions
12+
713
# 0.0.6
814

915
- PR #13 Support for reverse patching (Thanks, @graingert)

Pipfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ verify_ssl = true
66
[dev-packages]
77
nose = "*"
88
flake8 = "*"
9-
tox = "*"
109
twine = "*"
1110
black = "*"
1211
urllib3 = ">=1.24.2"

Pipfile.lock

Lines changed: 1 addition & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tox.ini

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

0 commit comments

Comments
 (0)