-
Notifications
You must be signed in to change notification settings - Fork 1.6k
35 lines (33 loc) · 888 Bytes
/
generator.yml
File metadata and controls
35 lines (33 loc) · 888 Bytes
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
on:
pull_request:
branches:
- main
name: generator
permissions:
contents: read
jobs:
test_generator_cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# Use a fetch-depth of 2
# See https://github.com/googleapis/google-cloud-python/issues/12013
# and https://github.com/actions/checkout#checkout-head.
with:
fetch-depth: 2
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .generator/requirements-test.in
- name: Run generator_cli tests
run: |
pytest .generator
- name: Check coverage
run: |
pytest --cov=. --cov-report=term-missing --cov-fail-under=100
working-directory: .generator