diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-03-21 19:33:10 -0400 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2020-03-29 15:06:18 -0400 |
| commit | c61125042774ed03d9f1eee77dd6ab0f95e6eb29 (patch) | |
| tree | 7f1e18cc211cd561466a36191e44871fbc6a7b6c | |
| parent | 62287ae18383447585606b9d0765c0f1b8a9777c (diff) | |
| download | cryptography-macos-github-actions.tar.gz | |
Move macOS CI to Github Actionsmacos-github-actions
| -rw-r--r-- | .github/workflows/ci.yml | 39 | ||||
| -rw-r--r-- | azure-pipelines.yml | 71 |
2 files changed, 38 insertions, 72 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80fcc4f7a..d116d6600 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,43 @@ on: - '*.*.*' jobs: + macos: + runs-on: macos-latest + strategy: + matrix: + PYTHON: + - {VERSION: "2.7", TOXENV: "py27"} + - {VERSION: "3.5", TOXENV: "py35"} + - {VERSION: "3.6", TOXENV: "py36"} + - {VERSION: "3.7", TOXENV: "py37"} + - {VERSION: "3.8", TOXENV: "py38"} + name: "Python ${{ matrix.PYTHON.VERSION }} on macOS" + steps: + - uses: actions/checkout@master + - name: Setup python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.PYTHON.VERSION }} + + - run: brew update + - run: brew install openssl@1.1 + - run: python -m pip install tox coverage + + - run: git clone https://github.com/google/wycheproof + + - run: | + CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 \ + LDFLAGS="/usr/local/opt/openssl\\@1.1/lib/libcrypto.a /usr/local/opt/openssl\\@1.1/lib/libssl.a" \ + CFLAGS="-I/usr/local/opt/openssl\\@1.1/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.9" \ + tox -r -- --color=yes --wycheproof-root=wycheproof + env: + TOXENV: ${{ matrix.PYTHON.TOXENV }} + + - name: Upload coverage + run: | + curl -o codecov.sh -f https://codecov.io/bash + bash codecov.sh -n "Python ${{ matrix.PYTHON.VERSION }} on macOS" -Z + windows: runs-on: windows-latest strategy: @@ -37,7 +74,7 @@ jobs: Remove-Item VCForPython27.msi -Force shell: powershell if: matrix.PYTHON.VERSION == '2.7' - - run: pip install tox requests coverage + - run: python -m pip install tox requests coverage - name: Download OpenSSL run: | python .github/workflows/download_openssl.py openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }} diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index cd979e027..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,71 +0,0 @@ -variables: - agent.preferPowerShellOnContainers: true - -trigger: - branches: - include: - - "master" - - "*.x" - tags: - include: - - "*" -pr: - - "*" - -jobs: -- job: 'mac' - pool: - vmImage: $[variables.vmImage] - strategy: - matrix: - Python27-macOS1014: - python.version: '2.7' - TOXENV: py27 - vmImage: 'macOS-10.14' - MACOS_VERSION: '10.14' - Python38-macOS1014: - python.version: '3.8' - TOXENV: py38 - vmImage: 'macOS-10.14' - MACOS_VERSION: '10.14' - Python27-macOS1015: - python.version: '2.7' - TOXENV: py27 - vmImage: 'macOS-10.15' - MACOS_VERSION: '10.15' - Python38-macOS1015: - python.version: '3.8' - TOXENV: py38 - vmImage: 'macOS-10.15' - MACOS_VERSION: '10.15' - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - - script: brew update - displayName: 'brew update' - - - script: brew install openssl@1.1 - displayName: 'Install OpenSSL' - - - script: pip install tox codecov - displayName: 'Install tox & codecov' - - - script: git clone https://github.com/google/wycheproof - displayName: 'Clone wycheproof' - - - script: | - set -e - set -x - - CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 \ - LDFLAGS="/usr/local/opt/openssl\\@1.1/lib/libcrypto.a /usr/local/opt/openssl\\@1.1/lib/libssl.a" \ - CFLAGS="-I/usr/local/opt/openssl\\@1.1/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.9" \ - tox -r -- --color=yes --wycheproof-root=wycheproof - displayName: 'Run tests' - - - script: codecov -e MACOS_VERSION,AGENT_OS,TOXENV - displayName: 'Submit coverage' - condition: succeeded() |
