Skip to content

Add opendbt code and tests #7

Add opendbt code and tests

Add opendbt code and tests #7

Workflow file for this run

name: Build and Test
variables:

Check failure on line 2 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 2, Col: 1): Unexpected value 'variables'
USE_BAZEL_VERSION: "7.2.1"
on:
push:
branches: [ main ]
paths-ignore:
- '.github/**'
- '.idea/**'
- '.run/**'
pull_request:
branches: [ main ]
paths-ignore:
- '.github/**'
- '.idea/**'
- '.run/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build & Install
run: |
python --version
python setup.py -q install --user
python -m pip install coverage pylint
python -m compileall -f opendbt setup.py
- name: Test with Unittest
run: |
python -m coverage run --source=./tests/ -m unittest discover -s tests/
python -m coverage report -m ./opendbt/*.py setup.py