Skip to content

Commit ba6c233

Browse files
committed
merge main
2 parents c1780aa + 5257fe8 commit ba6c233

23 files changed

+4255
-1198
lines changed

.github/workflows/code-coverage.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
strategy:
1717
matrix:
1818
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']
2020

2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@main
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@main
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Set temp directories on Windows
@@ -35,14 +35,27 @@ jobs:
3535
git config --global user.email "you@example.com"
3636
git config --global user.name "Your Name"
3737
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]"
4039
- name: Lint with flake8
4140
run: |
4241
# stop the build if there are Python syntax errors or undefined names
4342
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4443
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4544
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
46-
- name: Test with pytest
45+
- name: Test without pydantic
4746
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__
44
.DS_Store
55
*.json
66
*.egg-info
7+
build
78
.eggs
89
.coverage
910
dist

0 commit comments

Comments
 (0)