From 97c483b9d05975c05e45bd696312dd02ed89d0e8 Mon Sep 17 00:00:00 2001 From: larsevj Date: Tue, 17 Dec 2024 15:02:07 +0100 Subject: [PATCH] Fixups in github workflows --- .github/workflows/actionlint.yml | 8 +++++++- .github/workflows/publish_to_pypi.yml | 6 +++--- .github/workflows/style.yml | 7 ++++++- .github/workflows/typing.yml | 10 +++++----- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 0f0c45572..31c90bfe7 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -1,5 +1,11 @@ name: Lint GitHub Actions workflows -on: [push, pull_request] + +on: + push: + branches: + - main + tags: "*" + pull_request: jobs: actionlint: diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index 549a74b52..f456ad21c 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -13,12 +13,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Python 3.8 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.12 - name: Install dependencies - run: pip install --upgrade setuptools setuptools_scm wheel twine build + run: pip install --upgrade pip twine build - name: Build package run: python -m build - name: Upload deploy diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 4d2ac9959..eeec9f85a 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -1,6 +1,11 @@ name: Lint -on: [pull_request] +on: + push: + branches: + - main + tags: "*" + pull_request: env: UV_SYSTEM_PYTHON: 1 diff --git a/.github/workflows/typing.yml b/.github/workflows/typing.yml index 39edcf945..dded5600b 100644 --- a/.github/workflows/typing.yml +++ b/.github/workflows/typing.yml @@ -1,11 +1,11 @@ name: Type checking on: - push: - branches: - - main - - 'version-**' - pull_request: + push: + branches: + - main + tags: "*" + pull_request: env: UV_SYSTEM_PYTHON: 1