Skip to content

Commit 6aad54b

Browse files
committed
Add github workflow
1 parent 31de0d5 commit 6aad54b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/qencode-ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: qencode CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [ '3.x' ]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Configure git
15+
run: |
16+
git config --global user.name 'travis-ci'
17+
git config --global user.email '[email protected]'
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade poetry
25+
poetry install
26+
- name: Lint with flake8
27+
run: |
28+
poetry run flake8
29+
- name: Test with pytest
30+
run: |
31+
poetry run py.test --cov=./ --cov-report=xml
32+
- uses: codecov/codecov-action@v1
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)