Skip to content

cleanup (#212)

cleanup (#212) #94

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Dominate
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ["3"]
os: ["ubuntu-latest"]
include:
- {python: "3.9", os: "ubuntu-22.04"}
- {python: "3.10", os: "ubuntu-22.04"}
- {python: "3.11", os: "ubuntu-22.04"}
- {python: "3.12", os: "ubuntu-22.04"}
- {python: "3.13", os: "ubuntu-24.04"}
- {python: "pypy3.10", os: "ubuntu-24.04"}
steps:
- uses: actions/checkout@v4
- name: "Set up Python ${{ matrix.python }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: "Install dependencies"
run: |
python -m pip install pytest
python -m pip install build
python -m pip install "setuptools>=75"
- name: "Build and test"
run: |
python -m build --no-isolation
pip install dist/dominate*.tar.gz
pytest --ignore=tests/community
- name: Coveralls
env:
COVERAGE_RCFILE: ".github/workflows/.coveragerc"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m pip install coverage
python -m pip install coveralls
coverage run --source=dominate -m pytest --ignore=tests/community
python -m coveralls --service=github || true