@@ -16,12 +16,12 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
os : [ubuntu-latest, macos-latest, windows-latest]
19
- python-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ']
19
+ python-version : ['3.8 ', '3.9 ', '3.10 ', '3.11', '3.12 ']
20
20
21
21
steps :
22
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@main
23
23
- name : Set up Python ${{ matrix.python-version }}
24
- uses : actions/setup-python@v2
24
+ uses : actions/setup-python@main
25
25
with :
26
26
python-version : ${{ matrix.python-version }}
27
27
- name : Set temp directories on Windows
@@ -35,14 +35,27 @@ jobs:
35
35
git config --global user.email "you@example.com"
36
36
git config --global user.name "Your Name"
37
37
python -m pip install --upgrade pip
38
- python -m pip install flake8 pytest
39
- python -m pip install -e .
38
+ python -m pip install -e ".[dev-no-pydantic]"
40
39
- name : Lint with flake8
41
40
run : |
42
41
# stop the build if there are Python syntax errors or undefined names
43
42
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
44
43
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
45
44
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
46
- - name : Test with pytest
45
+ - name : Test without pydantic
47
46
run : |
48
- pytest
47
+ pytest --cov=tap
48
+ - name : Test with pydantic v1
49
+ run : |
50
+ python -m pip install "pydantic < 2"
51
+ pytest --cov=tap --cov-append
52
+ - name : Test with pydantic v2
53
+ run : |
54
+ python -m pip install "pydantic >= 2"
55
+ pytest --cov=tap --cov-append
56
+
57
+ - name : Upload coverage reports to Codecov
58
+ uses : codecov/codecov-action@v4
59
+ with :
60
+ token : ${{ secrets.CODECOV_TOKEN }}
61
+ verbose : true
0 commit comments