From 1acf74a0a03dd479db0517e9f78ba874693a5a02 Mon Sep 17 00:00:00 2001 From: Freddy Heppell Date: Thu, 8 Aug 2024 14:47:46 +0100 Subject: [PATCH] add type check workflow --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cc58e65..8324294 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,7 +4,7 @@ on: push: branches: ["main", "dev"] pull_request: - branches: ["main", "dev"] + branches: ["main", "dev", "release/*"] permissions: contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 171ef44..473c50a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ on: push: branches: ["main", "dev"] pull_request: - branches: ["main", "dev"] + branches: [ "main", "dev", "release/*" ] permissions: contents: read @@ -32,5 +32,7 @@ jobs: run: poetry install --no-interaction - name: Build Project run: poetry build + - name: Type check + run: poetry run mypy src/wpextract - name: Run tests run: poetry run pytest