Skip to content

Add 'Search' API (#15) #42

Add 'Search' API (#15)

Add 'Search' API (#15) #42

Workflow file for this run

on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
name: lint and test
jobs:
unit-tests:
name: ci
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.4.26"
- name: Set up Python
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync
- name: Test docs build
run: make sphinx
- name: Run lint
run: make lint-all
- name: Run coverage
run: uv run pytest --cov-report=xml:coverage.xml --cov=birdeyepy/ tests/
- name: Codecov
if: success()
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.xml
flags: unittests-py${{ matrix.python-version }}
create-release:
name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
needs: [unit-tests]
uses: nickatnight/gha-workflows/.github/workflows/create-release.yml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}