Skip to content

Commit af56eb9

Browse files
authored
uprev pydantic to b3 (#69)
* uprev pydantic to b3 * use coverage
1 parent 99f1d4e commit af56eb9

File tree

2 files changed

+3
-39
lines changed

2 files changed

+3
-39
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -51,48 +51,12 @@ jobs:
5151
5252
- run: pip freeze
5353

54-
- run: mkdir coverage
55-
5654
- run: make test
5755
env:
58-
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-with-deps
5956
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}-with-deps
6057

61-
- name: store coverage files
62-
uses: actions/upload-artifact@v3
63-
with:
64-
name: coverage
65-
path: coverage
66-
67-
coverage-combine:
68-
needs: [test]
69-
runs-on: ubuntu-latest
70-
71-
steps:
72-
- uses: actions/checkout@v3
73-
74-
- uses: actions/setup-python@v4
75-
with:
76-
python-version: '3.8'
77-
78-
- name: get coverage files
79-
uses: actions/download-artifact@v3
80-
with:
81-
name: coverage
82-
path: coverage
83-
84-
- run: pip install coverage[toml]
85-
86-
- run: ls -la coverage
87-
- run: coverage combine coverage
88-
- run: coverage report
89-
- run: coverage html --show-contexts --title "pydantic coverage for ${{ github.sha }}"
90-
91-
- name: Store coverage html
92-
uses: actions/upload-artifact@v3
93-
with:
94-
name: coverage-html
95-
path: htmlcov
58+
- run: coverage xml
59+
- uses: codecov/codecov-action@v3
9660

9761
# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
9862
check:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ classifiers = [
3939
]
4040
requires-python = '>=3.7'
4141
dependencies = [
42-
'pydantic>=2.0b1',
42+
'pydantic>=2.0b3',
4343
]
4444
dynamic = ['version']
4545

0 commit comments

Comments
 (0)