From 9be00685e24f976734aab10bf43ccb7e3277fbbb Mon Sep 17 00:00:00 2001 From: Christopher Wells Date: Sat, 6 Jul 2024 23:17:13 -0700 Subject: [PATCH] Add GitHub Actions config --- .github/workflows/test.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1c36ce7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Test + +on: [push, pull_request] + +permissions: + contents: read + +jobs: + build: + + name: Build and test on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.12 + uses: actions/setup-python@v3 + with: + python-version: "3.12" + + - name: Install package and dependencies + run: | + pip install '.[dev]' + + - name: Lint with mypy + run: | + mypy . + + - name: Lint with ruff + run: | + ruff check . + + - name: Lint with black + run: | + black --check . \ No newline at end of file