Update pydantic requirement from <2.0.0,>=1.10.8 to >=2.8.2,<3.0.0 #1698
Workflow file for this run
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
name: build | |
on: | |
pull_request: | |
types: [ opened, synchronize ] | |
push: | |
branches: [ main ] | |
jobs: | |
test-pipeline: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [ '3.8' ] | |
os: [ ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install pip | |
run: python -m pip install --upgrade pip | |
- name: Install package and dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install hatch | |
hatch run sync | |
- name: Lint | |
run: | | |
hatch run prospector --profile prospector.yaml | |
hatch run black --check . | |
- name: Run unit tests | |
run: | | |
git config --global init.defaultBranch main # to avoid verbose deprecation messages in CI pipeline | |
hatch run pytest tests/unit --cov dbx -n auto | |
- name: Run integrity tests | |
run: | | |
hatch run python -m dbx --help | |
hatch run python -c "from dbx._version import __version__; print(__version__)" | |
- name: Publish test coverage | |
if: startsWith(matrix.os,'ubuntu') | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # required |