Skip to content

Commit 420256c

Browse files
committed
workflows: Use Ubuntu 20.04 python directly
1 parent fa21d22 commit 420256c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎.github/workflows/ubuntu_test.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Run build and unit tests on Ubuntu 20.04
33
on:
44
push:
5-
branches: [main]
5+
branches: [master]
66
workflow_dispatch:
77

88
jobs:
@@ -12,21 +12,17 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
15-
- name: Setup python
16-
uses: actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6
17-
with:
18-
python-version: 3.8
1915
- name: Install dependencies
2016
run: |
2117
sudo apt update
2218
sudo apt install python3-setuptools python3-dev libsystemd-dev \
23-
systemd dbus
19+
systemd dbus python3 gcc
2420
- name: Build extension
2521
run: |
2622
python3 setup.py build
2723
- name: Install extension
2824
run: |
29-
python3 setup.py install
25+
sudo python3 setup.py install
3026
- name: Run unit tests
3127
run: |
3228
python3 -m unittest

0 commit comments

Comments
 (0)