From 4c8815537238a62aed2cbed5e96d5b78d3c8b729 Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Sat, 29 Jun 2024 09:31:59 +0100 Subject: [PATCH] add subvers to actions --- .github/workflows/check-lint.yml | 12 ++++++------ .github/workflows/check-test.yml | 9 +++------ .github/workflows/check-type.yml | 9 +++------ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check-lint.yml b/.github/workflows/check-lint.yml index e38e57d7..f1c9a69c 100644 --- a/.github/workflows/check-lint.yml +++ b/.github/workflows/check-lint.yml @@ -1,7 +1,4 @@ -# This workflow will... -# - see: https://docs.astral.sh/ruff/integrations/#github-actions - -name: Linting via ruff (check) +name: Linting on: @@ -34,10 +31,10 @@ jobs: python-version: ["3.12"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v5.1.0 with: python-version: ${{ matrix.python-version }} @@ -49,4 +46,7 @@ jobs: - name: Check with ruff run: ruff check --output-format=github . + - name: Check with ruff (format) + run: ruff format --check . + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.github/workflows/check-test.yml b/.github/workflows/check-test.yml index c649697c..c5b87511 100644 --- a/.github/workflows/check-test.yml +++ b/.github/workflows/check-test.yml @@ -1,7 +1,4 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# - see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Testing via pytest +name: Testing on: @@ -34,10 +31,10 @@ jobs: python-version: ["3.11", "3.12"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v5.1.0 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/check-type.yml b/.github/workflows/check-type.yml index 935c0cf1..face3bc1 100644 --- a/.github/workflows/check-type.yml +++ b/.github/workflows/check-type.yml @@ -1,7 +1,4 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# - see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Typing via mypy +name: Typing on: @@ -36,10 +33,10 @@ jobs: python-version: ["3.12"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v5.1.0 with: python-version: ${{ matrix.python-version }}