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 OS from Ubuntu to Windows for Python GitHub Actions to test unit tests #9

Merged
merged 7 commits into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8", "3.9", "3.10"]
python-version: ["3.7","3.8"]

steps:
- uses: actions/checkout@v3
Expand All @@ -28,7 +28,9 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -r requirements.txt
pip install -r requirements-test.txt
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -37,4 +39,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,6 @@ cython_debug/

# Visual Studio Code relevant settings/debug config
.vscode/launch.json

# pytest files
junit/*
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ Other than RobotFramework-FLAUI, there are no Python libraries that help us leve

This project is in active development over the latest version of FlaUI (3.2.0) available on GitHub. New releases are expected to come by in the next few weeks and certainly the documentation would improve alongside the planned releases.

If you would like to contribute or request a feature, feel free to join the discussions on the [project's GitHub page](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/discussions).
If you would like to contribute or request a feature, feel free to join the discussions on the [project's GitHub page](https://github.com/amruthvvkp/flaui-uiautomation-wrapper/discussions).

This project is designed to work only on Python 3.7 or 3.8 due to the Python version dependency from Pythonnet 2.5.2, PythonNet 3.0.0 is under development and post it's release this project would support Python 3.9 & 3.10.
4 changes: 0 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
-r requirements.txt

# VS Code Requirements
yapf
mypy
jupyter
isort

# Unit Testing
pytest
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(self):
'Tool to perform UI Automation on Windows desktop applications using an underlying FlaUI wrapper.',
long_description=long_description,
long_description_content_type='text/markdown',
python_requires='>=3.7',
python_requires='>=3.7, !=3.9, != 3.10',
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={'flaui': ['flaui/bin/*.dll']},
Expand Down