mirror of
https://github.com/ivuorinen/aeonview.git
synced 2026-03-13 08:58:27 +00:00
42 lines
964 B
YAML
42 lines
964 B
YAML
---
|
|
name: Python tests
|
|
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
branches: [main, master]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
# yamllint disable-line rule:line-length
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set up Python
|
|
# yamllint disable-line rule:line-length
|
|
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
with:
|
|
python-version: "3.13.2"
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run Ruff linting
|
|
shell: bash
|
|
run: ruff check .
|
|
|
|
- name: Run tests with coverage
|
|
shell: bash
|
|
run: |
|
|
pytest --cov=aeonview --cov-report=term-missing
|