Skip to content

Commit 1682c70

Browse files
author
James (ODSC)
authored
Merge pull request #366 from OpenDataServices/github-actions
ci: Travis -> GitHub Actions
2 parents 0c42233 + ffdf978 commit 1682c70

File tree

3 files changed

+51
-19
lines changed

3 files changed

+51
-19
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Setup python
10+
uses: actions/setup-python@v2
11+
with:
12+
python-version: 3.8
13+
architecture: x64
14+
- uses: actions/cache@v1
15+
with:
16+
path: ~/.cache/pip
17+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
18+
restore-keys: |
19+
${{ runner.os }}-pip-
20+
- run: pip install --upgrade -r requirements_dev.txt
21+
- run: pip install black==19.10b0
22+
- run: black --check *.py */
23+
- run: isort --check-only *.py */
24+
- run: flake8

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
python-version: [ '3.5', '3.6', '3.7', '3.8']
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
architecture: x64
17+
- uses: actions/cache@v1
18+
with:
19+
path: ~/.cache/pip
20+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
21+
restore-keys: |
22+
${{ runner.os }}-pip-
23+
- run: pip install --upgrade -r requirements_dev.txt
24+
- run: py.test --cov .
25+
- env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: coveralls

.travis.yml

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

0 commit comments

Comments
 (0)