Add remaining defi apis #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |