Files
sphinx-llms-txt/.github/workflows/test.yml
T
dependabot[bot]andGitHub 327ae7c2d7 Bump actions/checkout from 6 to 7 in the all-github-actions group
Bumps the all-github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-01 22:26:07 +00:00

56 lines
1.2 KiB
YAML

name: Test and Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
- uses: pre-commit/action@v3.0.1
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e . --group dev
# - name: Run mypy
# run: |
# mypy sphinx_cmd
- name: Test with pytest
run: |
pytest
# - name: Build package
# run: |
# pip install build
# python -m build
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: dist-${{ matrix.python-version }}
# path: dist/