Debian Codegraph @

.github/workflows/pyenv_tests.yml

raw
1 name: pyenv_tests
2 on: [pull_request, push]
3
4 permissions:
5 contents: read # to fetch code (actions/checkout)
6
7 jobs:
8 pyenv_tests:
9 strategy:
10 fail-fast: false
11 matrix:
12 os:
13 - ubuntu-22.04
14 - ubuntu-24.04
15 - macos-14
16 - macos-15
17 - macos-15-intel
18 - macos-26
19 runs-on: ${{ matrix.os }}
20 steps:
21 - uses: actions/checkout@v6
22 - run: |
23 if test "$RUNNER_OS" == "macOS"; then
24 brew install coreutils fish
25 fi
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 - name: Run test on the host
33 run: |
34 make test
35 - name: Run test with docker
36 if: ${{ ! contains(matrix.os, 'macos') }}
37 run: |
38 make test-docker
39 - env:
40 PYENV_NATIVE_EXT: 1
41 run: |
42 (cd src; ./configure; make)
43 bats/bin/bats test/{pyenv,hooks,versions}.bats