Bump pydantic from 1.10.7 to 1.10.13 #4
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, Test, Report Coverage | |
on: ["pull_request"] | |
jobs: | |
build: | |
name: Main CI | |
runs-on: ubuntu-latest | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
SECRETS_GPG_ARMOR: true | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
cache: "poetry" | |
- name: run Pre-Commit | |
uses: pre-commit/[email protected] | |
- name: Install Poetry | |
uses: Gr1N/setup-poetry@v7 | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ~/.virtualenvs | |
key: poetry-$ | |
restore-keys: | | |
poetry-$ | |
- name: Install Dependencies using Poetry | |
run: poetry install --with test | |
- name: Decrypt secrets | |
run: | | |
sudo apt install git-secret | |
gpg --import <(echo "$GPG_PRIVATE_KEY") | |
git secret reveal -f | |
- name: Create profiles | |
run: | | |
poetry run python tests/create_profiles.py | |
mkdir $HOME/.dbt | |
mv tests/profiles.yml $HOME/.dbt/profiles.yml | |
- name: Run Tests and Coverage Report | |
run: PYTHONPATH=src/ poetry run tox | |
- name: Upload coverage report to CodeCov | |
uses: codecov/codecov-action@v2 | |
with: | |
env_vars: GITHUB_RUN_ID | |
file: coverage-reports/coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: false |