Downgrade importlib to be compatible with dbt-core #53
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: Run pytest on PRs | |
on: | |
pull_request: | |
branches: | |
- '**' | |
schedule: | |
- cron: '0 2 * * 0' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run tests | |
run: | | |
poetry run pytest | |
env: | |
DBT_BASE_URL: ${{ secrets.DBT_BASE_URL }} | |
DBT_API_KEY: ${{ secrets.DBT_API_KEY }} | |
DBT_JOB_ID: ${{ secrets.DBT_JOB_ID }} | |
DBT_ACCOUNT_ID: ${{ secrets.DBT_ACCOUNT_ID }} | |
DBT_PROJECT_ID: ${{ secrets.DBT_PROJECT_ID }} | |
DBT_ENV_ID: ${{ secrets.DBT_ENV_ID }} |