This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
Run poetry lock
#214
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: Test | |
on: push | |
jobs: | |
test: | |
name: Test data using dbt | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
- name: Install Poetry | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install poetry | |
poetry --version | |
- name: Install project dependencies | |
run: | | |
poetry env use python3.11 | |
poetry install | |
- name: Test models | |
env: | |
DBT_PROFILES_DIR: "./" | |
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} | |
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }} | |
run: make test | |
lint_dbt: | |
name: Lint SQL models using SQLFluff | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
architecture: x64 | |
- name: Install Poetry | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
pipx install poetry | |
poetry --version | |
- name: Install project dependencies | |
run: | | |
poetry env use python3.11 | |
poetry install | |
- name: Lint models | |
env: | |
DBT_PROFILES_DIR: "./" | |
run: make lint |