Skip to content

Add Github Actions

Add Github Actions #5

Workflow file for this run

name: Hublot
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
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@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install pip==24.3.1
python -m pip install -r test/requirements.txt
python -m pip install .[pycurl]
- name: Lint
run: |
ruff check hublot/ test/
ruff format --check --line-length=132 hublot/ test/
pylint hublot/ test/
mypy --show-error-codes hublot/ test/
- name: Test
run: |
pytest --cov=hublot \
--cov-report json:coverage/ocerage.json \
--cov-report xml:coverage/coverage.xml \
--cov-report term \
test/
- name: Update Coverage Badge
#if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: we-cli/coverage-badge-action@main