-
Notifications
You must be signed in to change notification settings - Fork 23
57 lines (46 loc) · 1.59 KB
/
run_code_checks.yaml
File metadata and controls
57 lines (46 loc) · 1.59 KB
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
50
51
52
53
54
55
56
57
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:
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
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.13.5"]
runs-on: ${{ matrix.os }}
env:
HTTPBIN_URL: ${{ secrets.httpbin_url || 'https://httpbin.org' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv package manager
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: make install-dev
- name: Run unit tests
run: make unit-tests
docs_check:
name: Docs check
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
integration_tests:
name: Integration tests
needs: [lint_check, type_check, unit_tests]
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@fix-integration-tests-from-forks
secrets: inherit