40 lines
728 B
YAML
40 lines
728 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'assets/img/**'
|
|
- 'README.md'
|
|
- 'LICENSE.md'
|
|
push:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'assets/img/**'
|
|
- 'README.md'
|
|
- 'LICENSE.md'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v3
|
|
|
|
- name: Run Pre-Commit
|
|
uses: pre-commit/action@v3.0.1
|
|
|
|
- name: Run Go Tests
|
|
run: go test ./...
|