-
Notifications
You must be signed in to change notification settings - Fork 290
55 lines (53 loc) · 1.49 KB
/
dependencies.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
name: dependencies
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
upgrade:
name: Test dependencies
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
python: "3.10"
- os: ubuntu-22.04
python: "3.10"
- os: ubuntu-22.04
python: "3.11"
steps:
- name: Add deadsnakes PPA
if: matrix.os == 'ubuntu-20.04'
run: sudo add-apt-repository --yes ppa:deadsnakes/ppa
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Checkout default branch
uses: actions/checkout@v4
with:
ref: main
path: teuthology
- name: virtualenv
run: |
pip install --user virtualenv
virtualenv ./virtualenv
cd ./virtualenv/lib/python*
touch no-global-site-packages.txt
working-directory: ./teuthology
- name: Initial bootstrap
run: ./bootstrap install
working-directory: ./teuthology
- name: Move initial repository
run: mv teuthology teuthology.orig
- name: Checkout desired ref
uses: actions/checkout@v4
with:
path: teuthology
- name: Move virtualenv to new checkout
run: mv ./teuthology.orig/virtualenv ./teuthology/
- name: Re-run bootstrap
run: ./bootstrap install
working-directory: ./teuthology