Skip to content

build(deps-dev): bump ty from 0.0.62 to 0.0.63 #109

build(deps-dev): bump ty from 0.0.62 to 0.0.63

build(deps-dev): bump ty from 0.0.62 to 0.0.63 #109

Workflow file for this run

name: Test Action
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test-basic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create test project
run: |
mkdir -p test-project
cat > test-project/pyproject.toml << EOF
[project]
name = "test-project"
version = "0.1.0"
requires-python = ">=3.9"
dependencies = [
"requests>=2.31.0",
"pytest>=7.4.0",
]
EOF
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Generate lock file
working-directory: test-project
run: uv sync
- name: Test basic usage (with default uv sync command)
uses: ./
with:
pyproject-path: test-project/pyproject.toml
test-default-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create test project
run: |
mkdir -p test-project
cat > test-project/pyproject.toml << EOF
[project]
name = "test-project"
version = "0.1.0"
requires-python = ">=3.9"
dependencies = [
"requests>=2.31.0",
"pytest>=7.4.0",
]
EOF
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Generate lock file
working-directory: test-project
run: uv sync
- name: Test with default uv sync command (no command specified)
uses: ./
with:
pyproject-path: test-project/pyproject.toml
test-requirements:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Create test project
run: |
mkdir -p test-project
cat > test-project/pyproject.toml << EOF
[project]
name = "test-project"
version = "0.1.0"
requires-python = ">=3.9"
dependencies = [
"requests>=2.31.0",
"pytest>=7.4.0",
]
EOF
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Generate lock and requirements files
working-directory: test-project
run: |
uv sync
uv pip compile pyproject.toml -o requirements.txt
- name: Test with requirements
uses: ./
with:
pyproject-path: test-project/pyproject.toml
requirements-path: test-project/requirements.txt
command: uv pip compile pyproject.toml -o requirements.txt
test-python-version-tilde:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Debug - List test-fixtures/python-version-tilde
run: |
pwd
ls -l ./test-fixtures/python-version-tilde
cat ./test-fixtures/python-version-tilde/pyproject.toml
- name: Run action
id: action_step
uses: ./
with:
pyproject-path: ./test-fixtures/python-version-tilde/pyproject.toml
command: uv sync --directory ./test-fixtures/python-version-tilde