Skip to content

Commit 8774792

Browse files
authored
ci: setup github action workflow for testing (#92)
1 parent c120a85 commit 8774792

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.5, 3.6, 3.7]
12+
13+
steps:
14+
- uses: actions/checkout@v1
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+
python3 -m venv venv
22+
. venv/bin/activate
23+
pip install .[test]
24+
- name: run tests
25+
run: |
26+
. venv/bin/activate
27+
mkdir test-results
28+
pytest -v -s --junitxml=test-reports/junit.xml --cov=crypto --cov-config=.coveragerc --cov-report xml

0 commit comments

Comments
 (0)