-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from kddubey/union-code-coverage
Union code coverage
- Loading branch information
Showing
4 changed files
with
47 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Your Name" | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
python -m pip install -e . | ||
python -m pip install -e ".[dev-no-pydantic]" | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
|
@@ -45,12 +44,18 @@ jobs: | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test without pydantic | ||
run: | | ||
pytest | ||
pytest --cov=tap | ||
- name: Test with pydantic v1 | ||
run: | | ||
python -m pip install "pydantic < 2" | ||
pytest | ||
pytest --cov=tap --cov-append | ||
- name: Test with pydantic v2 | ||
run: | | ||
python -m pip install "pydantic >= 2" | ||
pytest | ||
pytest --cov=tap --cov-append | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters