Skip to content

build: migrate to uv #1056

build: migrate to uv

build: migrate to uv #1056

Workflow file for this run

name: Test
on: [push]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.12]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install deps
run: uv sync
- name: Lint with mypy
run: |
uv run mypy aleph_alpha_client
uv run mypy tests --ignore-missing-imports
- name: Run tests
run: |
uv run pytest --color=yes
env:
TEST_API_URL: ${{ secrets.TEST_API_URL }}
TEST_TOKEN: ${{ secrets.TEST_TOKEN }}