Skip to content

Commit 677a295

Browse files
Merge pull request #529 from mavlink/pr-fix-ci
Fix CI
2 parents 77961e2 + f1d9c6b commit 677a295

File tree

3 files changed

+29
-27
lines changed

3 files changed

+29
-27
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PyPi Upload
1+
name: Check and PyPi Upload
22

33
on:
44
push:
@@ -11,9 +11,9 @@ on:
1111
- '*'
1212

1313
jobs:
14-
ubuntu20:
15-
name: Ubuntu 20.04 x86_64
16-
runs-on: ubuntu-20.04
14+
ubuntu22:
15+
name: Ubuntu 22.04 x86_64
16+
runs-on: ubuntu-22.04
1717
steps:
1818
- uses: actions/checkout@v1
1919
with:
@@ -25,13 +25,13 @@ jobs:
2525
echo $?
2626
git tag --list
2727
28-
- name: Install patchelf
29-
run: sudo apt-get install -y patchelf python3-pip
28+
- name: Install pip
29+
run: sudo apt-get install -y python3-pip
3030

3131
- name: Install prerequisites
3232
run: |
33-
pip3 install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
34-
pip3 install auditwheel twine
33+
python3 -m pip install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
34+
python3 -m pip install auditwheel twine
3535
3636
- name: Create wheel
3737
run: |
@@ -70,9 +70,9 @@ jobs:
7070
7171
7272
73-
ubuntu20-other:
74-
name: Ubuntu 20.04 ${{ matrix.arch }}
75-
runs-on: ubuntu-20.04
73+
ubuntu22-other:
74+
name: Ubuntu 22.04 ${{ matrix.arch }}
75+
runs-on: ubuntu-22.04
7676

7777
strategy:
7878
matrix:
@@ -95,13 +95,13 @@ jobs:
9595
echo $?
9696
git tag --list
9797
98-
- name: Install patchelf
99-
run: sudo apt-get install -y patchelf python3-pip
98+
- name: Install pip
99+
run: sudo apt-get install -y python3-pip
100100

101101
- name: Install prerequisites
102102
run: |
103-
pip3 install -r requirements.txt -r requirements-dev.txt
104-
pip3 install twine
103+
python3 -m pip install -r requirements.txt -r requirements-dev.txt
104+
python3 -m pip install twine
105105
106106
- name: Create wheel
107107
run: |
@@ -139,12 +139,15 @@ jobs:
139139
140140
- name: Install prerequisites
141141
run: |
142-
pip3 install -r requirements.txt -r requirements-dev.txt
143-
pip3 install delocate twine
142+
python3 -m pip install -r requirements.txt
143+
python3 -m pip install twine
144+
python3 -m pip install --user delocate
144145
145146
- name: Create wheel
146147
run: |
147148
python3 setup.py bdist_wheel
149+
export PATH="$(python3 -m site --user-base)/bin:$PATH"
150+
echo "PATH: $PATH"
148151
delocate-wheel -w wheelhouse -v dist/*.whl
149152
ls wheelhouse/*any.whl | sed -e 'p;s/any/macosx_10_9_x86_64/' | xargs -n2 mv
150153
@@ -188,17 +191,17 @@ jobs:
188191
- name: Set up Python
189192
uses: actions/setup-python@v2
190193
with:
191-
python-version: 3.7
194+
python-version: 3.10
192195
architecture: ${{ matrix.arch }}
193196

194197
- name: Install prerequisites
195198
run: |
196-
pip3 install -r requirements.txt -r requirements-dev.txt
197-
pip3 install twine wheel
199+
python3 -m pip install -r requirements.txt -r requirements-dev.txt
200+
python3 -m pip install twine wheel
198201
199202
- name: Create wheel
200203
run: |
201-
python setup.py bdist_wheel
204+
python3 setup.py bdist_wheel
202205
Dir "dist/" | rename-item -NewName {$_.name -replace '-any.whl','-${{ matrix.wheel_arch }}.whl'}
203206
204207
- name: Check the artifacts

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
grpcio-tools>=1.11.0
2-
protoc-gen-mavsdk>=1.0.1
1+
grpcio-tools>=1.40.0
2+
protoc-gen-mavsdk>=1.1.0

requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
protobuf>=3.20.1
2-
aiogrpc>=1.5
3-
grpcio>=1.11.0
4-
importlib_resources>=1.0.2;python_version<"3.7"
1+
protobuf<=3.20.1
2+
aiogrpc>=1.8
3+
grpcio>=1.50.0

0 commit comments

Comments
 (0)