Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update atspi_test for improving CIs #1330

Open
wants to merge 22 commits into
base: atspi
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 7 additions & 19 deletions .github/workflows/atspi_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,25 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
max-parallel: 1
fail-fast: false
matrix:
os : [ubuntu-18.04, ubuntu-20.04]
python: [ '2.7', '3.7', '3.8', '3.9', '3.10', '3.11' ]
exclude:
- os: ubuntu-20.04
python: '2.7'
- os: ubuntu-20.04
python: '3.7'
- os: ubuntu-20.04
python: '3.8'
- os: ubuntu-18.04
python: '3.9'
- os: ubuntu-18.04
python: '3.10'
- os: ubuntu-18.04
python: '3.11'
os : [ubuntu-20.04] # python-xlib cannot work with ubuntu-22.04
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
env:
DISPLAY: ':0'
steps:
- name: get repo
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt update -y
sudo apt upgrade
sudo apt upgrade -y
sudo apt install -y --no-install-recommends python-setuptools tk-dev python-tk
sudo apt install -y --no-install-recommends python3 python3-pip python3-setuptools
sudo apt install -y --no-install-recommends python-xlib
Expand Down Expand Up @@ -92,6 +80,6 @@ jobs:
sleep 5
- name: Run tests
run: |
coverage run -m pytest pywinauto/unittests/test_atspi_element_info.py pywinauto/unittests/test_atspi_wrapper.py pywinauto/unittests/test_atspi_controls.py pywinauto/unittests/test_clipboard_linux.py pywinauto/unittests/test_keyboard.py pywinauto/unittests/test_application_linux.py
coverage run -m pytest pywinauto/unittests/test_atspi_element_info.py pywinauto/unittests/test_atspi_wrapper.py pywinauto/unittests/test_atspi_controls.py pywinauto/unittests/test_clipboard_linux.py pywinauto/unittests/test_keyboard.py pywinauto/unittests/test_application_linux.py -vv
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3