Skip to content

pypi

pypi #2

Workflow file for this run

name: Test and Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[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/