55 branches : [master]
66 pull_request :
77 branches : [master]
8+ workflow_dispatch :
9+ inputs : {}
810
911jobs :
1012 build :
11-
13+
1214 strategy :
15+ fail-fast : false
1316 matrix :
14- python-version : [3.6, 3.7, 3.8 ]
15-
17+ python-version : ["3.7", "3.8", "3.9", "3.10" ]
18+
1619 runs-on : ubuntu-latest
1720
1821 steps :
1922 - name : Checking out repo
20- uses : actions/checkout@v2
23+ uses : actions/checkout@v3
2124
22- - name : Set up Python ${{ matrix.container[1] }}
23- uses : actions/setup-python@v2
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@v3
2427 with :
2528 python-version : ${{ matrix.python-version }}
2629
@@ -29,11 +32,52 @@ jobs:
2932 python -m pip install -U pip setuptools wheel
3033 python3 -m pip install -U .[dev]
3134
32- - name : Check code formatting
33- run : find singer tests -type f -name '*.py' | xargs unify --check-only
34-
3535 - name : Analysing the code with pylint
3636 run : pylint singer
3737
3838 - name : Runs tests with coverage
39- run : nosetests --with-doctest -v --nocapture
39+ run : coverage run --parallel -m pytest
40+
41+ - name : Upload coverage data
42+ uses : actions/upload-artifact@v3
43+ with :
44+ name : coverage-data
45+ path : " .coverage.*"
46+
47+ coverage :
48+ runs-on : ubuntu-latest
49+ needs : build
50+ steps :
51+ - name : Check out the repository
52+ uses : actions/checkout@v3
53+
54+ - name : Set up Python
55+ uses : actions/setup-python@v3
56+ with :
57+ python-version : " 3.8"
58+
59+ - name : Install and upgrade dependencies
60+ run : |
61+ python -m pip install -U pip setuptools wheel
62+ python3 -m pip install -U .[dev]
63+
64+ - name : Download coverage data
65+ uses : actions/download-artifact@v3.0.0
66+ with :
67+ name : coverage-data
68+
69+ - name : Combine coverage data
70+ run : |
71+ coverage combine
72+
73+ - name : Generate XML coverage report
74+ run : |
75+ coverage xml
76+
77+ - name : Display human readable report
78+ run : |
79+ coverage report
80+
81+ # Optional if you want to use codecov.io
82+ # - name: Upload coverage report
83+ # uses: codecov/codecov-action@v3
0 commit comments