-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bumping dependencies and test site #69
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
972641f
bumped dependencies and changed test site
vklonin d3441fb
fixed metals_color_page.py
vklonin 3c4b249
fixed image tests
vklonin 9af6001
updated actions with 3 11 python
vklonin cf096a1
bumping deps
vklonin 01c5953
testing Path beh
vklonin 16513a8
testing Path beh
vklonin d9ef025
testing Path beh
vklonin cb77e07
fixing tests on new site
vklonin 92bb95c
fixing tests on new site
vklonin a05d475
fixing tests on new site
vklonin 410799b
Update .github/workflows/jdi-python.yml
vklonin 01cbcbf
Update .github/workflows/jdi-python.yml
vklonin 279831c
ubuntu debug
vklonin 9526bcc
fixing requirements
vklonin e5618a9
fixing requirements
vklonin 3cbca15
fixing actions
vklonin b9c9860
fixing actions
vklonin b99df5d
fixing actions
vklonin 11537bb
fixing chrome
vklonin eb6fa9c
fixing chrome
vklonin 0f38c16
fixing chrome
vklonin 4927e38
removing obsolete scripts
vklonin 9bffe83
added firefox
vklonin cb4ebb0
added firefox
vklonin 748458d
playing with conftest
vklonin 59817f9
debug
vklonin 8d4582e
fixing firefox
vklonin ecaa6f6
fixing browser
vklonin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,33 +12,32 @@ on: | |
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.x'] | ||
python-version: ['3.11'] | ||
browser: [chrome, firefox] | ||
|
||
steps: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actions/setup-python@v5 тоже There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. сделал |
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
- name: Download Chrome driver | ||
run: | | ||
cd utils | ||
python get_driver.py | ||
# TODO: use virtual machine for tests run | ||
- name: Run unit tests | ||
run: | | ||
pytest -v --cov=. --cov-config=.coveragerc --cov-report=html -m unit | ||
shell: cmd | ||
shell: bash | ||
- name: Run tests excluding 'unit' tests on ${{ matrix.browser }} | ||
run: | | ||
pytest -v -m "not unit" --browser=${{ matrix.browser }} | ||
shell: bash | ||
- name: Save debug log file | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: logs | ||
path: debug.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import os | ||
from webdriver_manager.chrome import ChromeDriverManager | ||
import sys | ||
|
||
from JDI.core.settings.jdi_settings import JDISettings | ||
|
||
|
||
class WebDriverProvider: | ||
@staticmethod | ||
def get_chrome_driver_path(): | ||
chrome = "/chromedriver.exe" if sys.platform.startswith("win") else "chromedriver" | ||
return os.path.join(JDISettings.get_driver_path(), chrome) | ||
chrome = ChromeDriverManager().install() | ||
return chrome | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
driver=chrome | ||
; domain=https://www.epam.com/ | ||
domain=https://jdi-framework.github.io/tests | ||
domain=https://jdi-testing.github.io/jdi-light | ||
timeout_wait_element=5 | ||
timeout_wait_pageLoad=5 | ||
drivers_folder=.\ | ||
driver_getLatest=true | ||
driver_getLatest=true | ||
headless=True | ||
user=Roman | ||
password=Jdi1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
[pytest] | ||
markers = | ||
unit: marks unit tests | ||
web: marks JDI tests | ||
web: marks JDI tests | ||
log_cli = true | ||
log_cli_level = INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-r requirements-dev.txt | ||
pywin32==306 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше на ubuntu, быстрее работать будет
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
переключил