From ebf262f0ebef6cb7c29a50c551433e33e98c8a74 Mon Sep 17 00:00:00 2001 From: Jesse Claven Date: Thu, 28 Nov 2024 20:58:31 +0000 Subject: [PATCH] ci: Add test --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ .python-version | 1 - 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .python-version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..61706bf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: macos-latest + + strategy: + matrix: + python-version: ["3.11"] + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" + + - name: Install the project + run: uv sync --all-extras --dev + + - name: Run static checks + run: uv tool run ruff check + + - name: Run format checks + run: uv tool run ruff format --check + + - name: Run tests + run: uv sync --dev --all-extras diff --git a/.python-version b/.python-version deleted file mode 100644 index 2c07333..0000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.11