diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e5013db --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: dbt-score + +on: + push: + branches: + - main + paths: + - "*.md" + - docs/** + - .github/workflows/docs.yml + - "src/**" + + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python: [ "3.8", "3.9", "3.10", "3.11" ] + + steps: + - uses: actions/checkout@v4 + - name: Set up PDM + uses: pdm-project/setup-pdm@v3 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + pdm sync -d + - name: Run Tests + run: | + pdm run tox -e py,lint +# - name: Publish docs +# run: | +# TODO +# - name: Publish package +# run: | +# pdm publish --no-build diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..69a743e --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,28 @@ +name: dbt-score + +on: + push: + branches: + - master + paths: + - "docs/**" + - "src/**" + - ".github/workflows/docs.yml" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + pdm run tox -e docs +# - name: Publish docs +# run: | +# TODO diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7188ff8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: dbt-score + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up PDM + uses: pdm-project/setup-pdm@v4 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + pdm sync -d + - name: Build package + run: | + pdm build +# - name: Publish package +# run: | +# pdm publish +