Skip to content

Commit 2a5d538

Browse files
authored
Add workflow for running tests
Trying out github actions.
1 parent 77fd677 commit 2a5d538

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
pip install -r requirements.txt
22+
pip setup.py bdist_wheel
23+
pip install dist/*.whl
24+
- name: Test with pytest
25+
run: |
26+
cd tests/ && nosetests --with-coverage --cover-package jmespath .

0 commit comments

Comments
 (0)