-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (48 loc) · 1.89 KB
/
main.yml
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
name: "main"
on: ["push", "workflow_dispatch"]
jobs:
# * ------------------------------------------------------------------------------ * #
# * Changes below may be lost in significant template updates.
pyright:
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
- run: "pip install --no-deps --requirement .tools/requirements/requirements_nodeps.txt"
- run: "pyright"
pytest-cov:
permissions:
contents: "read"
id-token: "write"
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
- run: "pip install --no-deps --requirement .tools/requirements/requirements_nodeps.txt"
- uses: "google-github-actions/[email protected]"
with:
workload_identity_provider: "projects/326920613558/locations/global/workloadIdentityPools/github-com/providers/github-com-oidc"
service_account: "[email protected]"
- uses: "google-github-actions/[email protected]"
- run: "dvc pull"
env:
GH_TOKEN: ${{ github.token }}
- run: "pytest --cov"
env:
OPENCV_SAMPLES_DATA_PATH: data/samples
- uses: "codecov/[email protected]"
bump_project:
needs: ["pyright", "pytest-cov"]
runs-on: "ubuntu-latest"
steps:
- uses: "blakeNaccarato/[email protected]"
with:
python-version: "3.11"
install-project: false
- uses: "stefanzweifel/[email protected]"
with:
commit_message: "Bump project template and compose `pyproject.toml`."
# * ------------------------------------------------------------------------------ * #
# * Changes below should persist in significant template updates.