diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..08e475d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: lint + +on: + push: + branches: + - main + pull_request: + branches: + - main + + +jobs: + lint: + runs-on: ubuntu-latest + steps: + + - name: checkout + uses: actions/checkout@v4 + + - name: lint + uses: chartboost/ruff-action@v1 + with: + version: 0.2.1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8148dc5..f565695 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,12 +1,12 @@ name: tests on: - push: - branches: - - main - pull_request: + workflow_run: + workflows: ["lint"] branches: - main + types: + - completed jobs: tests: