Skip to content

Commit

Permalink
consolidate lint and unit test for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
swotai committed Jul 10, 2024
1 parent 489ffd1 commit 18fc14e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/black.yaml

This file was deleted.

18 changes: 12 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: Build and Test

on:
workflow_run:
workflows: [Lint]
types: [completed]
on: [push]

jobs:
on_success:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose --color"
jupyter: true

unit_tests:
# [macos-latest, macos-latest, windows-latest]
runs-on: ubuntu-latest
needs: lint
strategy:
# You can use PyPy versions in python-version.
# For example, pypy2 and pypy3
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 18fc14e

Please sign in to comment.