59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Windows Test
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main, dev]
|
|
paths:
|
|
- 'setup.sh'
|
|
- 'src/aipass/*/apps/handlers/__init__.py'
|
|
- 'src/aipass/drone/cli.py'
|
|
- 'pyproject.toml'
|
|
pull_request:
|
|
paths:
|
|
- 'setup.sh'
|
|
- 'src/aipass/*/apps/handlers/__init__.py'
|
|
- 'src/aipass/drone/cli.py'
|
|
- 'pyproject.toml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
windows-setup:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Run setup.sh
|
|
shell: bash
|
|
run: bash setup.sh
|
|
|
|
- name: Verify drone CLI
|
|
shell: bash
|
|
run: |
|
|
source .venv/Scripts/activate
|
|
export PYTHONUTF8=1
|
|
drone --version
|
|
drone systems
|
|
drone @seedgo --help
|
|
|
|
- name: Run full test suite
|
|
shell: bash
|
|
run: |
|
|
source .venv/Scripts/activate
|
|
export PYTHONUTF8=1
|
|
pytest -v --tb=short --rootdir=. 2>&1 | tee pytest-output.txt
|
|
echo "EXIT_CODE=${PIPESTATUS[0]}" >> "$GITHUB_ENV"
|
|
|
|
- name: Upload test results
|
|
if: always()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: windows-pytest-results
|
|
path: pytest-output.txt
|