Files
AstrBot/.github/workflows/install_script_test.yml
Ruochen Pan 9503772b79 chore(ci): remove duplicate test runs (#11007)
* chore(ci): run coverage in the unit test workflow

Move coverage collection into the Ubuntu lane and remove the separate coverage workflow so the full suite runs once per change.

* chore(ci): avoid duplicate install script test run

Keep the bash syntax check in the install workflow; behavioral coverage comes from the full pytest suite, which already collects the file.
2026-11-05 17:15:44 +08:00

53 lines
1.2 KiB
YAML

name: Test install scripts
on:
push:
branches:
- master
paths:
- 'docs/public/install.ps1'
- 'docs/public/install.sh'
- 'tests/test_install_script.py'
- 'tests/install_script.Tests.ps1'
- '.github/workflows/install_script_test.yml'
pull_request:
paths:
- 'docs/public/install.ps1'
- 'docs/public/install.sh'
- 'tests/test_install_script.py'
- 'tests/install_script.Tests.ps1'
- '.github/workflows/install_script_test.yml'
workflow_dispatch:
jobs:
test:
name: Windows PowerShell compatibility
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Test Windows PowerShell 5.1
shell: powershell
run: .\tests\install_script.Tests.ps1
- name: Test PowerShell 7
shell: pwsh
run: .\tests\install_script.Tests.ps1
shell:
name: Bash installer (${{ matrix.os }})
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Check Bash installer syntax
shell: bash
run: /bin/bash -n docs/public/install.sh