39
39
steps :
40
40
- uses : actions/checkout@v4
41
41
- name : Set up Python ${{ matrix.python-version }}
42
- uses : actions/setup-python@v4
42
+ uses : actions/setup-python@v5
43
43
with :
44
44
python-version : ${{ matrix.python-version }}
45
+ cache : ' pip'
45
46
- name : Install Linux dependencies for Python 2
46
47
if : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '2.7' }}
47
48
run : |
@@ -52,16 +53,10 @@ jobs:
52
53
run : |
53
54
sudo apt update
54
55
sudo apt install python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-secret-1 gnome-keyring
55
- - name : Install PyGObject on Linux
56
- if : ${{ matrix.os == 'ubuntu-latest' }}
57
- run : |
58
- python -m pip install --upgrade pip
59
- python -m pip install pygobject
60
56
- name : Install Python dependencies
61
57
run : |
62
58
python -m pip install --upgrade pip
63
- python -m pip install pylint tox pytest
64
- pip install .
59
+ pip install -r requirements.txt
65
60
- name : Lint
66
61
if : ${{ matrix.lint == 'true' }}
67
62
run : |
@@ -100,9 +95,10 @@ jobs:
100
95
steps :
101
96
- uses : actions/checkout@v4
102
97
- name : Set up Python 3.9
103
- uses : actions/setup-python@v4
98
+ uses : actions/setup-python@v5
104
99
with :
105
100
python-version : 3.9
101
+ cache : ' pip'
106
102
- name : Build a package for release
107
103
run : |
108
104
python -m pip install build --user
0 commit comments