-
Notifications
You must be signed in to change notification settings - Fork 1.5k
55 lines (53 loc) · 1.61 KB
/
allpackages.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
on:
pull_request:
branches:
- main
name: allpackages
permissions:
contents: read
jobs:
test-all-packages-normal:
runs-on: ubuntu-latest
strategy:
matrix:
# python 3.12 is only available in pre-release versions
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install packages (normal)
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install -r scripts/test_all_packages/all_packages_${{ matrix.python }}.txt
- name: Generate test code
run: |
./scripts/test_all_packages/generate_test_code.sh
- name: Run test code
run: |
python3 scripts/test_all_packages/test_modules.py
test-all-packages-prerelease:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install packages (pre-release)
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install -r scripts/test_all_packages/all_packages_pre_release_${{ matrix.python }}.txt
- name: Generate test code
run: |
./scripts/test_all_packages/generate_test_code.sh
- name: Run test code
run: |
python3 scripts/test_all_packages/test_modules.py