Skip to content

Commit e811e4e

Browse files
author
dmy.berezovskyi
committed
added qodana integration
1 parent e29eab5 commit e811e4e

File tree

4 files changed

+61
-2
lines changed

4 files changed

+61
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Qodana
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: # Specify your branches here
7+
- main
8+
- master
9+
- 'releases/*'
10+
11+
jobs:
12+
qodana:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
checks: write
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
fetch-depth: 0
23+
- name: 'Qodana Scan'
24+
uses: JetBrains/qodana-action@v2024.3
25+
with:
26+
pr-mode: false
27+
args: --apply-fixes
28+
push-fixes: pull-request
29+
env:
30+
QODANA_TOKEN: ${{ secrets.QODANA }}

.idea/simple-python-selenium-framework.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

qodana.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#-------------------------------------------------------------------------------#
2+
# Qodana analysis is configured by qodana.yaml file #
3+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
4+
#-------------------------------------------------------------------------------#
5+
version: "1.0"
6+
7+
#Specify inspection profile for code analysis
8+
profile:
9+
name: qodana.starter
10+
11+
#Enable inspections
12+
#include:
13+
# - name: <SomeEnabledInspectionId>
14+
15+
#Disable inspections
16+
#exclude:
17+
# - name: <SomeDisabledInspectionId>
18+
# paths:
19+
# - <path/where/not/run/inspection>
20+
21+
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
22+
#bootstrap: sh ./prepare-qodana.sh
23+
24+
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
25+
#plugins:
26+
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
27+
28+
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
29+
linter: jetbrains/qodana-<linter>:latest

src/pageobjects/base_page.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from enum import Enum
22
from typing import Tuple, Optional, Literal
3-
from selenium.webdriver.common.by import By
43
from selenium.webdriver.remote.webelement import WebElement
54
from selenium.webdriver.support import expected_conditions as ec
65
from selenium.webdriver.support.wait import WebDriverWait
@@ -10,7 +9,7 @@
109
from utils.logger import log
1110

1211
# Type alias for locators
13-
Locator = Tuple[By, str]
12+
Locator = Tuple[str, str]
1413

1514

1615
class WaitType(Enum):

0 commit comments

Comments
 (0)