Debian Codegraph @

.github/workflows/python-build.yml

raw
1 #
2 # Copyright 2022 The Sigstore Authors.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 name: Check Python build
17
18 permissions:
19 contents: read
20
21 on:
22 push:
23 branches: [main]
24 pull_request: {}
25
26 jobs:
27 build:
28 name: Test Python build of generated code
29 strategy:
30 matrix:
31 python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
32 fail-fast: false
33
34 runs-on: ubuntu-latest
35
36 steps:
37 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38 with:
39 persist-credentials: false
40 - name: Set up Python ${{ matrix.python-version }}
41 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
42 with:
43 python-version: ${{ matrix.python-version }}
44
45 - name: Build
46 run: |
47 cd gen/pb-python
48 python -m venv env && source env/bin/activate
49 python -m pip install --upgrade pip
50 python -m pip install .[dev]
51
52 python -m build