Skip to content

Commit

Permalink
删掉windows相关用力,改回ubuntu环境
Browse files Browse the repository at this point in the history
  • Loading branch information
kaluluosi committed Nov 23, 2023
1 parent 558ba93 commit a3a07c8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 39 deletions.
6 changes: 3 additions & 3 deletions .github/actions/env_setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ runs:

steps:
- name: chcp
shell: powershell
shell: bash
run: chcp 65001

- name: Install Poetry-安装poetry
shell: powershell
shell: bash
run: pipx install poetry

- name: Setup Python-安装python环境
Expand All @@ -21,7 +21,7 @@ runs:
cache: 'poetry' # 缓存poetry

- name: Update pip
shell: powershell
shell: bash
run: pip install --upgrade pip

- name: Install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version'
description: package version
type: string
required: true

Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Publish package
run: |
poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
docs:
needs: [ deploy ]
uses: ./.github/workflows/docs.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:


test-android:
runs-on: windows-latest
runs-on: ubuntu-latest

services:
avd:
Expand All @@ -41,7 +41,7 @@ jobs:
uses: jakejarvis/[email protected]
with:
time: '60s'

- name: Checkout-检出项目
uses: actions/checkout@v4

Expand Down
18 changes: 9 additions & 9 deletions tests/test_device_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ def test_connect_android_default(self):

dev_lib.disconnect_device()

@unittest.skipIf(condition=sys.platform != "win32", reason="系统平台不支持")
def test_connect_windows_default(self):
dev_lib = DeviceLibrary(
device_uri="windows:///?title_re=com",
pkg_name=EXE_PATH,
auto_start_app=True,
)
dev_lib.connect_device()
dev_lib.disconnect_device()
# @unittest.skipIf(condition=sys.platform != "win32", reason="系统平台不支持")
# def test_connect_windows_default(self):
# dev_lib = DeviceLibrary(
# device_uri="windows:///?title_re=com",
# pkg_name=EXE_PATH,
# auto_start_app=True,
# )
# dev_lib.connect_device()
# dev_lib.disconnect_device()


class AndroidDeviceTest(unittest.TestCase):
Expand Down
23 changes: 0 additions & 23 deletions tests/test_device_library_windows.robot

This file was deleted.

0 comments on commit a3a07c8

Please sign in to comment.