Skip to content

Commit 2ef8938

Browse files
committed
Added Github actions for automatic build
1 parent 009e76d commit 2ef8938

File tree

5 files changed

+290
-0
lines changed

5 files changed

+290
-0
lines changed

.github/workflows/python-3.10.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Python 3.10
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+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.10"
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
# Dependencies for execution
29+
sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi
30+
31+
- name: Install Python packages
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m venv venv
35+
. venv/bin/activate
36+
pip install -r requirements_ci.txt
37+
38+
- name: Compile
39+
run: |
40+
python -m compileall wmectrl
41+
42+
- name: Lint with flake8
43+
run: |
44+
. venv/bin/activate
45+
python -m flake8 wmectrl
46+
47+
- name: Install
48+
run: |
49+
. venv/bin/activate
50+
python -m build --outdir=dist .
51+
python -m pip install --verbose dist/*.whl
52+
53+
- name: Show results
54+
run: |
55+
python -m pip list
56+
python -m pip freeze
57+
ls -laR .
58+
python -m pip uninstall --yes --verbose wmectrl

.github/workflows/python-3.11.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Python 3.11
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+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.11"
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
# Dependencies for execution
29+
sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi
30+
31+
- name: Install Python packages
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m venv venv
35+
. venv/bin/activate
36+
pip install -r requirements_ci.txt
37+
38+
- name: Compile
39+
run: |
40+
python -m compileall wmectrl
41+
42+
- name: Lint with flake8
43+
run: |
44+
. venv/bin/activate
45+
python -m flake8 wmectrl
46+
47+
- name: Install
48+
run: |
49+
. venv/bin/activate
50+
python -m build --outdir=dist .
51+
python -m pip install --verbose dist/*.whl
52+
53+
- name: Show results
54+
run: |
55+
python -m pip list
56+
python -m pip freeze
57+
ls -laR .
58+
python -m pip uninstall --yes --verbose wmectrl

.github/workflows/python-3.12.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Python 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+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.12"
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
# Dependencies for execution
29+
sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi
30+
31+
- name: Install Python packages
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m venv venv
35+
. venv/bin/activate
36+
pip install -r requirements_ci.txt
37+
38+
- name: Compile
39+
run: |
40+
python -m compileall wmectrl
41+
42+
- name: Lint with flake8
43+
run: |
44+
. venv/bin/activate
45+
python -m flake8 wmectrl
46+
47+
- name: Install
48+
run: |
49+
. venv/bin/activate
50+
python -m build --outdir=dist .
51+
python -m pip install --verbose dist/*.whl
52+
53+
- name: Show results
54+
run: |
55+
python -m pip list
56+
python -m pip freeze
57+
ls -laR .
58+
python -m pip uninstall --yes --verbose wmectrl

.github/workflows/python-3.13.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Python 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+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.13"
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
# Dependencies for execution
29+
sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi
30+
31+
- name: Install Python packages
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m venv venv
35+
. venv/bin/activate
36+
pip install -r requirements_ci.txt
37+
38+
- name: Compile
39+
run: |
40+
python -m compileall wmectrl
41+
42+
- name: Lint with flake8
43+
run: |
44+
. venv/bin/activate
45+
python -m flake8 wmectrl
46+
47+
- name: Install
48+
run: |
49+
. venv/bin/activate
50+
python -m build --outdir=dist .
51+
python -m pip install --verbose dist/*.whl
52+
53+
- name: Show results
54+
run: |
55+
python -m pip list
56+
python -m pip freeze
57+
ls -laR .
58+
python -m pip uninstall --yes --verbose wmectrl

.github/workflows/python-3.9.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Python 3.9
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+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.9"
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get update
28+
# Dependencies for execution
29+
sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi
30+
31+
- name: Install Python packages
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m venv venv
35+
. venv/bin/activate
36+
pip install -r requirements_ci.txt
37+
38+
- name: Compile
39+
run: |
40+
python -m compileall wmectrl
41+
42+
- name: Lint with flake8
43+
run: |
44+
. venv/bin/activate
45+
python -m flake8 wmectrl
46+
47+
- name: Install
48+
run: |
49+
. venv/bin/activate
50+
python -m build --outdir=dist .
51+
python -m pip install --verbose dist/*.whl
52+
53+
- name: Show results
54+
run: |
55+
python -m pip list
56+
python -m pip freeze
57+
ls -laR .
58+
python -m pip uninstall --yes --verbose wmectrl

0 commit comments

Comments
 (0)