Skip to content

Commit df6359d

Browse files
committed
CI: move to GHA
1 parent 5c8bc74 commit df6359d

File tree

3 files changed

+51
-17
lines changed

3 files changed

+51
-17
lines changed

.github/workflows/testing.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '00 4 * * *' # daily at 4AM
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.7', '3.8', '3.9', '3.10']
16+
fail-fast: false
17+
steps:
18+
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install test requirements
29+
shell: bash -l {0}
30+
run: |
31+
set -vxeuo pipefail
32+
python -m pip install -r requirements-dev.txt
33+
python -m pip install -v .
34+
python -m pip list
35+
36+
- name: Test with pytest
37+
shell: bash -l {0}
38+
run: |
39+
set -vxeuo pipefail
40+
coverage run -m pytest -v
41+
coverage report
42+
43+
- name: Upload code coverage
44+
uses: codecov/codecov-action@v1

.travis.yml

-17
This file was deleted.

requirements-dev.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# These are required for developing the package (running the tests, building
2+
# the documentation) but not necessarily required for _using_ it.
3+
black
4+
codecov
5+
coverage
6+
flake8
7+
pytest

0 commit comments

Comments
 (0)