Add an optional parameter to clear existing text before typing text #1023
This file contains hidden or 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
name: Unittests | |
# Allow to trigger the workflow manually (e.g., when deps changes) | |
on: [push, workflow_dispatch] | |
jobs: | |
pytest-job: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
# Set up Python | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
# Install AndroidWorld | |
- name: Install AndroidWorld | |
run: | | |
mv pyproject.toml pyproject.toml.bak || true | |
pip install -r requirements.txt | |
python setup.py install | |
# Set PYTHONPATH | |
- name: Set PYTHONPATH | |
run: | | |
echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV | |
# Set TMPDIR | |
- name: Set TMPDIR | |
run: | | |
echo "TMPDIR=/tmp/" >> $GITHUB_ENV | |
# Install additional dependencies | |
- name: Install additional dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y fonts-dejavu fonts-liberation ttf-mscorefonts-installer | |
pip --version | |
pip install pytest-xdist | |
pip install -e .[dev] | |
pip freeze | |
# Run tests (in parallel) | |
- name: Run core tests | |
env: | |
PYTHONPATH: ${{ env.PYTHONPATH }} | |
run: | | |
pytest -vv -n auto --ignore=android_env | |
- name: Rename pyproject.toml | |
run: | | |
mv pyproject.toml.bak pyproject.toml || true |