Files
panxiao81 5f74d8a9bd
test / shell (pull_request) Failing after 22s
test / python (pull_request) Successful in 41s
使用 Gitea bootstrap runner label
2026-09-16 13:09:48 +00:00

28 lines
541 B
YAML

name: test
on:
push:
branches:
- main
pull_request:
jobs:
python:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e '.[test]'
- run: pytest
- run: python -m compileall -q src
shell:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- run: shellcheck scripts/*