Skip to content

test: skip POSIX release packaging on Windows #56

test: skip POSIX release packaging on Windows

test: skip POSIX release packaging on Windows #56

Workflow file for this run

name: CI
permissions:
contents: read
on:
push:
pull_request:
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
- name: Sync dependencies
run: uv sync --dev
- name: Run tests
run: uv run pytest
- name: Run lint
run: uv run ruff check
- name: Check POSIX installer syntax
if: runner.os != 'Windows'
run: bash -n install.sh
- name: Check Windows installer syntax
if: runner.os == 'Windows'
shell: pwsh
run: |
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile(
(Resolve-Path "install.ps1"),
[ref]$tokens,
[ref]$errors
) | Out-Null
if ($errors.Count -gt 0) {
$errors | Format-List
exit 1
}