Run on os: [windows-latest]

This commit is contained in:
Dmitri Bogomolov 2021-07-05 20:03:25 +03:00
parent 598bfd368a
commit e0df8d7f6d
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -9,11 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-latest]
os: [windows-latest]
python-version: [2.7, 3.8]
include:
- os: ubuntu-18.04
python-version: 3.9
steps:
- uses: actions/checkout@v2
@ -22,6 +19,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Set environment variables
if: ${{ runner.os != 'Windows' }}
run: |
if [[ ${{ runner.os }} == macOS ]]; then
echo "LDFLAGS=-L/usr/local/opt/openssl@1.1/lib" >> $GITHUB_ENV
@ -37,10 +35,21 @@ jobs:
run: |
brew install tor
brew services start tor
- name: Install windows dependencies
if: ${{ runner.os == 'Windows' }}
run: |
Start-Job -Name WebReq -ScriptBlock {
Invoke-WebRequest -Uri "https://github.com/Bitmessage/ThirdPartyLibraries/blob/master/Win64OpenSSL-1_0_2t.exe?raw=true" -OutFile "Win64OpenSSL-1_0_2t.exe"
Invoke-WebRequest -Uri "https://web.archive.org/web/20190720195601/https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi" -OutFile "VCForPython27.msi"
}
Wait-Job -Name WebReq
Start-Process -FilePath Win64OpenSSL-1_0_2t.exe -ArgumentList '/q /norestart /silent /verysilent /sp- /suppressmsgboxes /dir=C:\OpenSSL-Win64' -Wait
Start-Process -FilePath VCForPython27.msi -ArgumentList '/qn /norestart' -Wait
echo "OPENSSL_DIR=c:\\OpenSSL-Win64" >> $GITHUB_ENV
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -r requirements.txt
python setup.py install
- name: Test
run: |