File: python-3.11.yml

package info (click to toggle)
gwakeonlan 0.8.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 736 kB
  • sloc: python: 1,360; xml: 34; makefile: 2
file content (56 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download | duplicates (2)
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
56
name: Python 3.11

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

permissions:
  contents: read

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4

    - name: Set up Python
      uses: actions/setup-python@v5
      with:
        python-version: "3.11"

    - name: Install dependencies
      run: |
        sudo apt-get update
        # Dependencies for installation
        sudo apt-get install gettext
        # Dependencies for execution
        sudo apt-get install gir1.2-gtk-3.0 gobject-introspection libcairo2-dev libgirepository1.0-dev python3-gi

    - name: Install Python packages
      run: |
        python -m pip install --upgrade pip
        python -m venv venv
        . venv/bin/activate
        pip install -r requirements_ci.txt

    - name: Compile
      run: |
        python -m compileall gwakeonlan gwakeonlan.py setup.py

    - name: Lint with flake8
      run: |
        . venv/bin/activate
        python -m flake8 gwakeonlan gwakeonlan.py setup.py

    - name: Install
      run: |
        . venv/bin/activate
        python setup.py install --optimize=1 --root=build

    - name: Show results
      run: |
        ls -laR .