Skip to content

Commit 1931d07

Browse files
committed
ci: setup initial jobs
1 parent 8732c8b commit 1931d07

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python: ["3.10"]
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Set up Python ${{ matrix.python }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python }}
23+
- name: Install dependencies
24+
run: |
25+
python setup.py install
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
- name: Test with pytest & coverage
29+
run: python -m pytest --cov=src --cov-report term --cov-report html --cov-report xml
30+
# TODO requires activation for this repository on codecov website first.
31+
# - name: Upload coverage to Codecov
32+
# uses: codecov/codecov-action@v3
33+
34+
lint:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v1
38+
- name: Set up Python
39+
uses: actions/setup-python@v1
40+
with:
41+
python-version: "3.10"
42+
- name: Install dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install -r requirements.txt
46+
- name: Lint with pylint
47+
run: pylint $(git ls-files '*.py')

0 commit comments

Comments
 (0)