bug fix: fix test failed on windows #4
This file contains 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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
#os: [ubuntu-latest, windows-latest, macos-latest] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.0-dev | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install pytest pytest-cov | |
- name: Install dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install pytest pytest-cov | |
- name: Install dependencies (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e . | |
pip install pytest pytest-cov | |
- name: Run tests | |
run: | | |
pytest tests/ --cov=webview --cov-report=xml | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 |