Skip to content

Commit

Permalink
Introduce GitHub Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
druzhinin-kirill committed Feb 23, 2024
1 parent ee30699 commit cfa4bc0
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cfa4bc0

Please sign in to comment.