Debian Codegraph @

.github/workflows/ubuntu_build.yml

raw
1 name: ubuntu_build
2 on: [pull_request, push]
3
4 permissions:
5 contents: read # to fetch code (actions/checkout)
6
7 jobs:
8 ubuntu_build:
9 strategy:
10 fail-fast: false
11 matrix:
12 python-version:
13 - "3.10"
14 - "3.11"
15 - "3.12"
16 - "3.13"
17 - "3.14"
18 runs-on: ubuntu-latest
19 steps:
20 - uses: actions/checkout@v6
21 - run: |
22 sudo apt-get update -q; sudo apt install -yq make build-essential libssl-dev zlib1g-dev \
23 libbz2-dev libreadline-dev libsqlite3-dev curl \
24 libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
25 # https://github.com/pyenv/pyenv#installation
26 - run: pwd
27 - env:
28 PYENV_ROOT: /home/runner/work/pyenv/pyenv
29 run: |
30 echo $PYENV_ROOT
31 echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
32 bin/pyenv --debug install ${{ matrix.python-version }}
33 bin/pyenv global ${{ matrix.python-version }}
34 bin/pyenv rehash
35 - run: python --version
36 - run: python -m pip --version
37 - shell: python # Prove that actual Python == expected Python
38 env:
39 EXPECTED_PYTHON: ${{ matrix.python-version }}
40 run: import os, sys ; assert sys.version.startswith(os.getenv("EXPECTED_PYTHON"))