ci: install dependencies

* Install GTK dev dependencies
* Add requirements.txt
* Fix error that happens on CI only (?)
This commit is contained in:
Romain Failliot 2021-11-21 14:22:20 -05:00
parent 5bcd63fe27
commit c54e346887
3 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Pylint - name: Pylint
uses: cclauss/GitHub-Action-for-pylint@master uses: cclauss/GitHub-Action-for-pylint@master
with: with:
args: "pylint src/**/*.py" args: "apk add --no-cache gtk+3.0-dev gobject-introspection-dev ; pip install -r requirements.txt ; pylint src/**/*.py"
meson-build-test: meson-build-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
PyGObject~=3.40
pylint~=2.11

View File

@ -110,6 +110,7 @@ class FileChooserDialog(Gtk.FileChooserDialog):
def get_revision(self): def get_revision(self):
return self.revision.get_text() return self.revision.get_text()
# pylint: disable-next=arguments-differ
def get_filename(self): def get_filename(self):
# convert from UTF-8 string to unicode # convert from UTF-8 string to unicode
return Gtk.FileChooserDialog.get_filename(self) # pylint: disable=no-member return Gtk.FileChooserDialog.get_filename(self) # pylint: disable=no-member