Skip to content

Implement Github action #41

Implement Github action

Implement Github action #41

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
pull_request:
workflow_dispatch:
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Setup uv
uses: astral-sh/setup-uv@v4
- name: Install project + dev deps
run: uv sync --extra dev
- name: Run flake8
run: uv run flake8 -v .
tests:
runs-on: ubuntu-latest
name: pytest (Python 3.13)
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.13
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Setup uv
uses: astral-sh/setup-uv@v4
- name: Install project + dev deps
run: uv sync --extra dev
- name: Run tests
run: uv run pytest --cov st_package_reviewer --cov tests --cov-report term-missing
- name: Coveralls
continue-on-error: true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
uv pip install coveralls
uv run coveralls