From 24676f16fee7e89906e5bcdd28774e371f7528b3 Mon Sep 17 00:00:00 2001 From: raylu <90059+raylu@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:17:48 -0700 Subject: [PATCH] Run ruff on push in GH actions --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..378e376 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,28 @@ +# https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-python + +name: CI + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: pip + + - run: pip install --progress-bar off ruff build + + - name: ruff + run: ruff check --output-format=github dool + + - name: check package builds successfully + run: mv dool dool.py && python -m build