summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Müller <elias.mr1@gmail.com>2022-07-09 19:30:11 +0200
committerjaseg <136313+jaseg@users.noreply.github.com>2022-07-11 12:44:47 +0200
commit49a26a663d96d5f6a5e317e40439b66f81218d6a (patch)
tree5e23a1d5c8e0accf453b4e3383705444a33c0e4f
parent427603bd81fa6c791ca0e780f46ef4dee149924c (diff)
downloadpython-mpv-49a26a663d96d5f6a5e317e40439b66f81218d6a.tar.gz
python-mpv-49a26a663d96d5f6a5e317e40439b66f81218d6a.tar.bz2
python-mpv-49a26a663d96d5f6a5e317e40439b66f81218d6a.zip
Add Windows test
-rw-r--r--.github/workflows/tests.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 54f9aa8..ef33234 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -53,3 +53,38 @@ jobs:
function execute() { echo -e "\033[0;34m$*\033[0m"; "$@"; }
execute source venv/bin/activate
execute xvfb-run python -m pytest
+
+ test-windows:
+ runs-on: windows-latest
+ name: 'Windows - Python'
+ strategy:
+ matrix:
+ python-version: [ '3.10' ] # '3.7', '3.8', '3.9'
+ steps:
+ - uses: actions/checkout@v3
+ - name: 'Install Python'
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: 'Setup Build Environment'
+ run: |
+ function execute() { echo -e "\033[0;34m$*\033[0m"; "$@"; }
+ execute python -m venv venv
+ execute source venv/Scripts/activate
+ execute python -m pip install --upgrade pip
+ execute python -m pip install wheel
+ execute python -m pip install -r tests/requirements.txt
+ - name: 'Install libmpv'
+ run: |
+ function execute() { echo -e "\033[0;34m$*\033[0m"; "$@"; }
+
+ ARTIFACT="mpv-dev-x86_64-20220619-git-c1a46ec.7z"
+ URL="https://sourceforge.net/projects/mpv-player-windows/files/libmpv/$ARTIFACT"
+
+ execute curl -L -O "$URL"
+ execute 7z x "$ARTIFACT"
+ - name: 'Run Python Tests'
+ run: |
+ function execute() { echo -e "\033[0;34m$*\033[0m"; "$@"; }
+ execute source venv/Scripts/activate
+ execute python -m pytest