chore(deps): update astral-sh/setup-uv digest to 7c47ef9 (#66) #172
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
name: Build & Test | |
"on": | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
schedule: | |
- cron: 01 13 * * SAT | |
jobs: | |
test: | |
name: Build & Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
steps: | |
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 | |
- uses: astral-sh/setup-uv@7c47ef9ebd819c296f8ff7a1e4a3aa8ff369b5b8 | |
id: setup-uv | |
with: | |
enable-cache: true | |
- run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}" | |
- name: Create venv and sync deps | |
run: | | |
uv venv --python ${{ matrix.python-version }} | |
uv sync | |
- name: Run tests (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
. .venv/Scripts/activate.ps1 | |
pytest -v | |
shell: pwsh | |
- name: Run tests (Linux/macOS) | |
if: runner.os != 'Windows' | |
run: | | |
. .venv/bin/activate | |
pytest -v | |
required-check: | |
name: All Tests Passed | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "All tests passed!" |