Skip to content

Commit d68d89d

Browse files
committed
Added pythons.yml
1 parent ae89859 commit d68d89d

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/pythons.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Python versions from 3.8 to 3.12
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Install dependencies
30+
run: |
31+
sudo apt-get update
32+
# Dependencies for installation
33+
sudo apt-get install gettext
34+
# Dependencies for execution
35+
sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi
36+
37+
- name: Install Python packages
38+
run: |
39+
python -m pip install --upgrade pip
40+
python -m venv venv
41+
. venv/bin/activate
42+
pip install -r requirements_ci.txt
43+
44+
- name: Compile
45+
run: |
46+
python -m compileall gwakeonlan gwakeonlan.py setup.py
47+
48+
- name: Lint with flake8
49+
run: |
50+
. venv/bin/activate
51+
python -m flake8 gwakeonlan gwakeonlan.py setup.py
52+
53+
- name: Install
54+
run: |
55+
. venv/bin/activate
56+
python setup.py install --optimize=1 --root=build
57+
58+
- name: Show results
59+
run: |
60+
ls -laR .

0 commit comments

Comments
 (0)