Skip to content

Commit

Permalink
ds template check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
karllu3 committed Jul 23, 2024
1 parent 79a4458 commit c6e8e7d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ds_update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Template check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:

validate-default-instance:
runs-on: ubuntu-latest
container: python:3.11

steps:
- uses: actions/checkout@v4

- name: Cache Dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: pip install -r requirements.txt

- name: Create project instance
run: cookiecutter . --no-input && cd ds-template

- name: Run pre-commit checks
run: pre-commit run --all-files --show-diff-on-failure --color always

0 comments on commit c6e8e7d

Please sign in to comment.