Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GitHub Actions yml. #4

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "tests"
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set environment variables
uses: c-py/action-dotenv-to-setenv@v5
with:
env-file: .env
- name: Install rye
uses: eifinger/setup-rye@v3
with:
version: "latest"
- name: Install rye dependencies
run: rye sync
- name: Run pre-commit CI hooks
run: rye run pre-commit run --all-files
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "awesome-inc"
version = "0.4.2"
version = "0.5.0"
description = "Add your description here"
authors = [
{ name = "nemishmehta", email = "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion src/awesome_inc/warehouse/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ models:
awesome_inc:
# Config indicated by + and applies to all files under models/example/
staging:
+materialized: table
+materialized: view
marts:
+materialized: table