-
Notifications
You must be signed in to change notification settings - Fork 319
36 lines (29 loc) · 1.13 KB
/
run_code_checks.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
name: Run code checks
on:
# Trigger code checks on opening a new pull request.
# Secrets are only made available to the integration tests job, with a manual approval
# step required for PRs from forks. This prevents their potential exposure.
pull_request:
# Pushing to the master branch triggers code checks
push:
branches:
- master
tags-ignore:
- "**" # Ignore all tags to prevent duplicate checks when tags are pushed.
# It should also be possible to trigger checks manually
workflow_dispatch:
jobs:
lint_check:
name: Lint check
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
type_check:
name: Type check
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
unit_tests:
name: Unit tests
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
secrets:
httpbin_url: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://janbuchar--httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org'}}
docs_check:
name: Docs check
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main