Skip to content

Commit

Permalink
Uses Composer's code quality workflow
Browse files Browse the repository at this point in the history
Uses Composer's reusuable code quality workflow for consistency.
  • Loading branch information
b-chu committed Jan 19, 2024
1 parent 35bb339 commit 67ec34b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/code-quality.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/pr-code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Code Quality Checks
on:
push:
branches:
- main
- release/**
pull_request:
- main
- release/**
workflow_dispatch:
# Cancel old runs when a new commit is pushed to the same branch if not on main or dev
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
code-quality:
uses: mosaicml/composer/.github/workflows/[email protected]
strategy:
matrix:
python_version:
- '3.9'
- '3.10'
pip_deps:
- '[dev]'
with:
python_version: ${{ matrix.python_version }}
pip_deps: ${{ matrix.pip_deps }}

0 comments on commit 67ec34b

Please sign in to comment.