Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,45 @@ on:
pull_request:

jobs:
# formatting:
# name: Formatting and static analysis
# runs-on: 'ubuntu-24.04'
# outputs:
# min_python: ${{ steps.vars.outputs.min_python }}
# min_tox_env: ${{ steps.vars.outputs.min_tox_env }}
# steps:
# - uses: actions/checkout@v4
# - name: Get Python version for other CI jobs
# id: vars
# run: |
# echo "min_python=$(< .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
# echo "min_tox_env=py$(sed 's/\.//g' < .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
# - uses: actions/setup-python@v5
# with:
# python-version-file: '.github/workflows/python-version-ci'
# - uses: pre-commit/[email protected]
# with:
# extra_args: --all-files
# - uses: pre-commit-ci/[email protected]
# if: always()
# with:
# msg: Apply automatic formatting
formatting:
name: Formatting and static analysis
runs-on: 'ubuntu-24.04'
outputs:
min_python: ${{ steps.vars.outputs.min_python }}
min_tox_env: ${{ steps.vars.outputs.min_tox_env }}
steps:
- uses: actions/checkout@v4
- name: Get Python version for other CI jobs
id: vars
run: |
echo "min_python=$(< .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
echo "min_tox_env=py$(sed 's/\.//g' < .github/workflows/python-version-ci)" >> "$GITHUB_OUTPUT"
- uses: actions/setup-python@v5
with:
python-version-file: '.github/workflows/python-version-ci'
- uses: pre-commit/[email protected]
with:
extra_args: --all-files
- uses: pre-commit-ci/[email protected]
if: always()
with:
msg: Apply automatic formatting

# tests:
# name: Tests
# needs: formatting
# strategy:
# matrix:
# os: ['ubuntu-24.04']
# python:
# - version: '${{needs.formatting.outputs.min_python}}'
# tox-env: '${{needs.formatting.outputs.min_tox_env}}'
# uses: ./.github/workflows/test.yml
# with:
# os-variant: ${{ matrix.os }}
# python-version: ${{ matrix.python.version }}
# tox-env: ${{ matrix.python.tox-env }}
# secrets: inherit
tests:
name: Tests
needs: formatting
strategy:
matrix:
os: ['ubuntu-24.04']
python:
- version: '${{needs.formatting.outputs.min_python}}'
tox-env: '${{needs.formatting.outputs.min_tox_env}}'
uses: ./.github/workflows/test.yml
with:
os-variant: ${{ matrix.os }}
python-version: ${{ matrix.python.version }}
tox-env: ${{ matrix.python.tox-env }}
secrets: inherit

docs:
# needs: tests
Expand Down
Loading