diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..509314e --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index abf2f3e..924bc6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "23.nemishmehta@gmail.com" } diff --git a/src/awesome_inc/warehouse/dbt_project.yml b/src/awesome_inc/warehouse/dbt_project.yml index 05d014d..3eb77ac 100644 --- a/src/awesome_inc/warehouse/dbt_project.yml +++ b/src/awesome_inc/warehouse/dbt_project.yml @@ -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