Skip to content
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

updates2 #387

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .github/workflows/devRun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,13 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
run: poetry install --no-interaction --no-root
- name: Install xvfb and fluxbox
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xvfb fluxbox
version: 1.0
- name: Test with pytest
env:
EMAIL: ${{ secrets.EMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
source .venv/bin/activate
SCREEN_WIDTH=1920
SCREEN_HEIGHT=1080
SCREEN_DEPTH=24
SCREEN_DPI=300
export GEOMETRY="${SCREEN_WIDTH}""x""${SCREEN_HEIGHT}""x""${SCREEN_DEPTH}"
export DISPLAY=:99.0
rm -f /tmp/.X*lock
xvfb-run --server-num=99 \
--listen-tcp \
--server-args="-screen 0 ${GEOMETRY} -fbdir /var/tmp -dpi ${SCREEN_DPI} -listen tcp -noreset -ac +extension RANDR" \
fluxbox -display :99.0 2&1>/dev/null &
exec $@
pytest -m devRun --base-url ${{ vars.BASE_URL }}
xvfb-run pytest -m devRun --base-url ${{ vars.BASE_URL }}
- name: Auto-assign reviewers
uses: kentaro-m/[email protected]
if: success()
Expand Down
19 changes: 1 addition & 18 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,13 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
run: poetry install --no-interaction --no-root
- name: Install xvfb and fluxbox
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: xvfb fluxbox
version: 1.0
- name: Test with pytest
env:
EMAIL: ${{ secrets.EMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
source .venv/bin/activate
SCREEN_WIDTH=1920
SCREEN_HEIGHT=1080
SCREEN_DEPTH=24
SCREEN_DPI=300
export GEOMETRY="${SCREEN_WIDTH}""x""${SCREEN_HEIGHT}""x""${SCREEN_DEPTH}"
export DISPLAY=:99.0
rm -f /tmp/.X*lock
xvfb-run --server-num=99 \
--listen-tcp \
--server-args="-screen 0 ${GEOMETRY} -fbdir /var/tmp -dpi ${SCREEN_DPI} -listen tcp -noreset -ac +extension RANDR" \
fluxbox -display :99.0 2&1>/dev/null &
exec $@
pytest -m "not devRun" --base-url ${{ vars.BASE_URL }}
xvfb-run pytest -m "not devRun" --base-url ${{ vars.BASE_URL }}
- name: Link Git Information And Browser Version To Allure Report
working-directory: allure-results
if: always()
Expand Down