-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (45 loc) · 1.31 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: open-turo/actions-gha/lint@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check release notes on pull_request
if: github.event_name == 'pull_request'
uses: open-turo/actions-release/lint-release-notes@v4
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: open-turo/actions-gha/test@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# lint-oss tries to run this action against open source repositories not in
# open-turo to make sure this is usable outside the org.
# Repositories added to this list should have pre-commit hooks that don't
# require external tooling to be installed.
# Repositories added to this list must have passing pre-commit hooks.
lint-oss:
name: Lint / Open source
runs-on: ubuntu-latest
strategy:
matrix:
repos:
- tiangolo/fastapi
steps:
- uses: actions/checkout@v4
with:
repository: ${{ matrix.repos }}
- uses: actions/checkout@v4
with:
path: actions-python
- uses: ./actions-python/lint
with:
checkout-repo: false
github-token: ${{ secrets.GITHUB_TOKEN }}