diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-03-21 14:38:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 13:38:45 -0500 |
commit | 1ac825f28d0c4956c309b4470ec85430b1bbf3dc (patch) | |
tree | fd510478fbf692b5963cdcaf7c64f951ffb28665 /.github/workflows/ci.yml | |
parent | 0ecb4c564496622fd5b87996c4599f7d147caf5e (diff) | |
download | cryptography-1ac825f28d0c4956c309b4470ec85430b1bbf3dc.tar.gz cryptography-1ac825f28d0c4956c309b4470ec85430b1bbf3dc.tar.bz2 cryptography-1ac825f28d0c4956c309b4470ec85430b1bbf3dc.zip |
First pass at moving windows CI to github actions (#5145)
* First pass at moving windows CI to github actions
* Install coverage
* Remove bonus http request
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..80fcc4f7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,57 @@ +on: + pull_request: {} + push: + branches: + - master + - '*.*.x' + tags: + - '*.*.*' + +jobs: + windows: + runs-on: windows-latest + strategy: + matrix: + WINDOWS: + - {ARCH: 'x86', WINDOWS: 'win32'} + - {ARCH: 'x64', WINDOWS: 'win64'} + PYTHON: + - {VERSION: "2.7", TOXENV: "py27", MSVC_VERSION: "2010"} + - {VERSION: "3.5", TOXENV: "py35", MSVC_VERSION: "2019"} + - {VERSION: "3.6", TOXENV: "py36", MSVC_VERSION: "2019"} + - {VERSION: "3.7", TOXENV: "py37", MSVC_VERSION: "2019"} + - {VERSION: "3.8", TOXENV: "py38", MSVC_VERSION: "2019"} + name: "Python ${{ matrix.PYTHON.VERSION }} on ${{ matrix.WINDOWS.WINDOWS }}" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.PYTHON.VERSION }} + architecture: ${{ matrix.WINDOWS.ARCH }} + + - name: Install MSVC for Python 2.7 + run: | + Invoke-WebRequest -Uri https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi -OutFile VCForPython27.msi + Start-Process msiexec -Wait -ArgumentList @('/i', 'VCForPython27.msi', '/qn', 'ALLUSERS=1') + Remove-Item VCForPython27.msi -Force + shell: powershell + if: matrix.PYTHON.VERSION == '2.7' + - run: pip install tox requests coverage + - name: Download OpenSSL + run: | + python .github/workflows/download_openssl.py openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }} + echo "::set-env name=INCLUDE::C:/openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }}/include;%INCLUDE%" + echo "::set-env name=LIB::C:/openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }}/lib;%LIB%" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: git clone https://github.com/google/wycheproof + + - run: tox -r -- --color=yes --wycheproof-root=wycheproof + env: + TOXENV: ${{ matrix.PYTHON.TOXENV }} + + - uses: codecov/codecov-action@v1 + with: + name: "Python ${{ matrix.PYTHON.VERSION }} on ${{ matrix.WINDOWS.WINDOWS }}" + fail_ci_if_error: true |