This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
93 lines (93 loc) · 3.38 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on: [push, pull_request]
jobs:
checks:
name: TOXENV=${{ matrix.tox-env }}
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- check-name: Format
python-version: "3.10"
tox-env: fmt-check
- check-name: Packaging
python-version: "3.10"
tox-env: package
steps:
- name: Checkout Lambdex
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Check ${{ matrix.check-name }}
uses: pantsbuild/actions/run-tox@e63d2d0e3c339bdffbe5e51e7c39550e3bc527bb
with:
tox-env: ${{ matrix.tox-env }}
integration-tests-27-36:
name: (${{ matrix.os }}) TOXENV=py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python-version: [2, 7, 18]
os: macos-12
it-selector: "{pre,post}"
- python-version: [2, 7, 18]
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 6, 15]
os: ubuntu-22.04
it-selector: "{pre,post}"
steps:
- name: Checkout Lambdex
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}
# Upgrade node16 -> node20: Out for review here:
# https://github.com/gabrielfalcao/pyenv-action/pull/444
uses: pex-tool/pyenv-action@baec18679698d2f80064cc04eb9ad0c8dc5ca8f8
env:
ENSUREPIP: no
with:
default: "${{ join(matrix.python-version, '.') }}"
command: pip install -U "tox<4"
- name: Run Integration Tests
run: tox -e py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6
integration-tests-37-312:
name: (${{ matrix.os }}) TOXENV=py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python-version: [3, 7]
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 8]
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 9]
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 10]
os: macos-12
it-selector: "post"
- python-version: [3, 10]
os: ubuntu-22.04
it-selector: "post"
- python-version: [3, 11]
os: ubuntu-22.04
it-selector: "post"
- python-version: [3, 12]
os: ubuntu-22.04
it-selector: "post"
steps:
- name: Checkout Lambdex
uses: actions/checkout@v4
- name: Setup Python ${{ join(matrix.python-version, '.') }}
uses: actions/setup-python@v5
with:
python-version: "${{ join(matrix.python-version, '.') }}"
- name: Run Integration Tests
uses: pantsbuild/actions/run-tox@e63d2d0e3c339bdffbe5e51e7c39550e3bc527bb
with:
tox-env: py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6