Files
gitea-dynamic-runner/.gitea/workflows/test.yml
panxiao81 53a080b310
test / python (pull_request) Successful in 1m13s
test / shell (pull_request) Successful in 1m34s
test / go (pull_request) Successful in 3m14s
ci: 为测试显式选择 Pod runner
2026-09-21 09:34:30 +00:00

38 lines
774 B
YAML

name: test
on:
push:
branches:
- main
pull_request:
jobs:
go:
runs-on: [self-hosted, pod]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go test ./...
- run: go vet ./...
python:
runs-on: [self-hosted, pod]
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, pod]
steps:
- uses: actions/checkout@v4
- run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- run: shellcheck scripts/*