Skip to content

Commit

Permalink
CI: Merged lint & test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia committed Oct 20, 2024
1 parent 284a58e commit 49e8887
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 63 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/lint.yml

This file was deleted.

23 changes: 21 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:
paths:
- 'src/**'
- 'tests/**'
- '!**.pyi'
- 'tox.ini'
- 'pyproject.toml'
- 'pdm.lock'
Expand All @@ -34,7 +33,6 @@ on:
paths:
- 'src/**'
- 'tests/**'
- '!**.pyi'
- 'tox.ini'
- 'pyproject.toml'
- 'pdm.lock'
Expand All @@ -51,6 +49,27 @@ env:
PDM_VERSION: '2.19.3' # Used by FreeBSD VM

jobs:
type-hinting:
if: |
(github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'Bump version:'))
&& (github.event_name != 'pull_request' || github.event.pull_request.draft != true)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2022, macos-14]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup tox
uses: ./.github/actions/setup-tox
with:
python-version: '3.11'
- name: Launch checks
run: tox run -f mypy

tests:
if: |
(github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'Bump version:'))
Expand Down

0 comments on commit 49e8887

Please sign in to comment.