Skip to content

chore(deps-dev): update idna requirement from >=3.13 to >=3.18 #785

chore(deps-dev): update idna requirement from >=3.13 to >=3.18

chore(deps-dev): update idna requirement from >=3.13 to >=3.18 #785

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v6
with:
lfs: true
- name: Pull Git LFS objects
run: git lfs pull
- name: Install system packages (headless Qt / GL)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libgl1 libegl1 libdbus-1-3 libxkbcommon0 libxcb-cursor0 libxcb-icccm4 \
libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-shape0 \
libxcb-xinerama0 libxcb-xfixes0 libxcb-xinput0 libxkbcommon-x11-0 \
libfontconfig1 xvfb
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-timeout pytest-qt qtpy PyQt6 PyQt6-Qt6
pip install -e "./Libraries/PyKotor[all]"
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=docs/archive,helper_scripts
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=docs/archive,helper_scripts
- name: Test with pytest
env:
QT_QPA_PLATFORM: offscreen
LANG: C.UTF-8
LC_ALL: C.UTF-8
run: |
pytest --import-mode=importlib -m "not gui and not slow" --timeout=120 \
--ignore=Libraries/PyKotor/tests/resource/formats/test_mdl_ascii.py \
--ignore=Libraries/PyKotor/tests/test_utility/test_registry_strict_typing.py \
--ignore=Libraries/PyKotor/tests/test_utility/test_file_dialog_components.py \
--ignore=Libraries/PyKotor/tests/test_utility/test_keyboard_accessibility_conformance.py \
Libraries/PyKotor/tests