Skip to content

Commit

Permalink
[CI/CD][LINUX] trying
Browse files Browse the repository at this point in the history
  • Loading branch information
congzhangzh committed Nov 2, 2024
1 parent 30b5c42 commit b652d5a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest]
os: [windows-latest]
os: [windows-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}

Expand All @@ -27,7 +27,7 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev
sudo apt-get install -y libwebkit2gtk-4.0-dev xvfb
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-cov
Expand All @@ -46,7 +46,13 @@ jobs:
pip install -e .
pip install pytest pytest-cov
- name: Run tests
- name: Run tests (Linux)
if: runner.os == 'Linux'
run: |
xvfb-run --auto-servernum pytest tests/ --cov=webview --cov-report=xml
- name: Run tests (Windows)
if: runner.os == 'Windows'
run: |
pytest tests/ --cov=webview --cov-report=xml
Expand Down

0 comments on commit b652d5a

Please sign in to comment.