Skip to content

Commit

Permalink
创建项目
Browse files Browse the repository at this point in the history
Signed-off-by: tyrone <[email protected]>
  • Loading branch information
wbbk committed Oct 16, 2024
1 parent 9221540 commit 6c285a7
Show file tree
Hide file tree
Showing 21 changed files with 736 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
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
# 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
- name: Test with pytest
run: |
pytest
34 changes: 34 additions & 0 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python Package using Conda

on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file environment.yml --name base
- name: Lint with flake8
run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# 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
- name: Test with pytest
run: |
conda install pytest
pytest
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# AutoTestCodeTools
政务APP应用事项巡检可视化工具助手

依托于Airtest框架、POCOUI框架,实现某APP的自动化巡检工作。

本代码开源可用,支持Windows、macOS、linux三个系统编译使用

运行前需安装:pyinstaller

pip install pyinstaller

pyinstaller code2exe.spec --clean

(可选,配置upx进行包压缩)

![iShot_2024-10-16_19.10.56](./webpictures/demo.png)
=======
打包注意事项:

1.打包后需要将adb文件夹复制至生成的dist文件夹下;

2.需要将识别用到的图片复制到生成的dist文件夹下;



已实现功能:

启动APP

关闭APP

导入文件

导出文件

循环遍历

重复检查

报错 标红/标黄



后续开发……

检查一致性

提升工具包适配多APP

建立包组件库

…………
Binary file added adb/linux/adb
Binary file not shown.
Binary file added adb/linux_arm/adb
Binary file not shown.
Binary file added adb/mac/adb
Binary file not shown.
Binary file added adb/windows/AdbWinApi.dll
Binary file not shown.
Binary file added adb/windows/AdbWinUsbApi.dll
Binary file not shown.
Binary file added adb/windows/adb.exe
Binary file not shown.
Loading

0 comments on commit 6c285a7

Please sign in to comment.