mirror of
https://github.com/ivuorinen/aeonview.git
synced 2026-01-27 12:39:25 +00:00
36 lines
747 B
YAML
36 lines
747 B
YAML
name: Python tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
|
|
|
- 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
|