Setup python correctly in common tests on Windows and MacOS

Este commit está contenido en:
Thom Wiggers 2020-10-16 13:00:58 +02:00 cometido por Kris Kwiatkowski
padre f53268924d
commit 174060858b

Ver fichero

@ -107,6 +107,10 @@ jobs:
Set-ItemProperty -Path "HKLM:\\SOFTWARE\\Microsoft\\.NetFramework\\v4.0.30319" -Name "SchUseStrongCrypto" -Value '1' -Type DWord Set-ItemProperty -Path "HKLM:\\SOFTWARE\\Microsoft\\.NetFramework\\v4.0.30319" -Name "SchUseStrongCrypto" -Value '1' -Type DWord
Invoke-WebRequest -OutFile "test\\astyle.exe" "https://rded.nl/pqclean/AStyle.exe" Invoke-WebRequest -OutFile "test\\astyle.exe" "https://rded.nl/pqclean/AStyle.exe"
shell: powershell shell: powershell
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: "3.x"
- name: Install python requirements - name: Install python requirements
run: python -m pip install -r requirements.txt run: python -m pip install -r requirements.txt
- name: Run tests - name: Run tests
@ -114,7 +118,7 @@ jobs:
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars${{ matrix.bits }}.bat" call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars${{ matrix.bits }}.bat"
cd test cd test
python -m pytest --verbose --numprocesses=auto python -m pytest --verbose --numprocesses=auto
python3 test_common.py --numprocesses=auto python test_common.py --numprocesses=auto
shell: cmd shell: cmd
test-macos: test-macos:
env: env:
@ -135,10 +139,14 @@ jobs:
- name: Set up GCC9 compiler - name: Set up GCC9 compiler
run: 'export PATH="/usr/local/bin:$PATH" && export CC=gcc-9' run: 'export PATH="/usr/local/bin:$PATH" && export CC=gcc-9'
if: ${{ matrix.compiler == 'gcc9' }} if: ${{ matrix.compiler == 'gcc9' }}
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: "3.x"
- name: Install Python dependencies - name: Install Python dependencies
run: python3 -m pip install -r requirements.txt run: python -m pip install -r requirements.txt
- name: Run tests - name: Run tests
run: | run: |
cd test cd test
python3 test_common.py --numprocesses=auto python test_common.py --numprocesses=auto