Skip to content

fix: add --find-links to release workflow for local dependency resolu… #11

fix: add --find-links to release workflow for local dependency resolu…

fix: add --find-links to release workflow for local dependency resolu… #11

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
if: runner.os != 'Windows'
- name: Install uv (Windows)
run: |
irm https://astral.sh/uv/install.ps1 | iex
echo "$env:USERPROFILE\.cargo\bin" >> $env:GITHUB_PATH
if: runner.os == 'Windows'
- name: Install dependencies
run: |
uv sync --all-extras
- name: Run tests with tox
run: |
uv run tox -e py$(echo ${{ matrix.python-version }} | tr -d '.')
- name: Test CLI installation
run: |
# Test that the CLI can be imported and run
uv run python -c "from deepctl.main import main; print('Import successful')"
uv run deepctl --version
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
uv sync --all-extras
- name: Run linters with tox
run: |
uv run tox -e lint