Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.3.0 to 7.0.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/ece7cb06caefa5fff74198d8649806c4678c61a1...5fda3b95a4ea91299a34e894583c3862153e4b97) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Windows Test
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# Run on every push/PR to main/dev — NOT path-filtered. This is a branch-
|
|
# protection *required* check; a path filter makes it skip on unrelated PRs,
|
|
# which GitHub then parks as "Expected — waiting for status" forever, blocking
|
|
# the merge. Required checks must run on every PR to report a status.
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
branches: [main, dev]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
windows-setup:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.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
|