diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-11-17 20:31:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 19:31:30 -0600 |
commit | 52341e8b151ca3bd1142cf9de188da3fd588fc62 (patch) | |
tree | fbc9162e6755ceb914e43b4a21515b780a4262d2 /.github | |
parent | e93aea7e96b3eef8fa5dce54a3c221668821e282 (diff) | |
download | pyopenssl-git-52341e8b151ca3bd1142cf9de188da3fd588fc62.tar.gz |
Migrate CI to GHA (#960)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e7064f3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,62 @@ +name: CI +on: + pull_request: {} + push: {} + +jobs: + linux: + runs-on: ubuntu-latest + strategy: + matrix: + PYTHON: + # Base builds + - {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"} + - {VERSION: "3.9", TOXENV: "py39"} + - {VERSION: "pypy2", TOXENV: "pypy"} + - {VERSION: "pypy3", TOXENV: "pypy3"} + # -cryptographyMaster + - {VERSION: "2.7", TOXENV: "py27-cryptographyMaster"} + - {VERSION: "3.6", TOXENV: "py36-cryptographyMaster"} + - {VERSION: "3.7", TOXENV: "py37-cryptographyMaster"} + - {VERSION: "3.8", TOXENV: "py38-cryptographyMaster"} + - {VERSION: "3.9", TOXENV: "py39-cryptographyMaster"} + - {VERSION: "pypy2", TOXENV: "pypy-cryptographyMaster"} + - {VERSION: "pypy3", TOXENV: "pypy3-cryptographyMaster"} + # -cryptographyMinimum + - {VERSION: "2.7", TOXENV: "py27-cryptographyMinimum"} + - {VERSION: "3.5", TOXENV: "py35-cryptographyMinimum"} + - {VERSION: "3.6", TOXENV: "py36-cryptographyMinimum"} + - {VERSION: "3.7", TOXENV: "py37-cryptographyMinimum"} + - {VERSION: "3.8", TOXENV: "py38-cryptographyMinimum"} + - {VERSION: "3.9", TOXENV: "py39-cryptographyMinimum"} + - {VERSION: "pypy2", TOXENV: "pypy-cryptographyMinimum"} + - {VERSION: "pypy3", TOXENV: "pypy3-cryptographyMinimum"} + # Random order + - {VERSION: "2.7", TOXENV: "py27-randomorder"} + - {VERSION: "3.9", TOXENV: "py39-randomorder"} + # Downstreams + - {VERSION: "3.7", TOXENV: "py37-twistedMaster"} + # Meta + - {VERSION: "2.7", TOXENV: "check-manifest"} + - {VERSION: "2.7", TOXENV: "pypi-readme"} + - {VERSION: "3.9", TOXENV: "flake8"} + - {VERSION: "2.7", TOXENV: "docs"} + name: "${{ matrix.PYTHON.TOXENV }}" + steps: + - uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.PYTHON.VERSION }} + - run: python -m pip install tox coverage + - run: tox -v + env: + TOXENV: ${{ matrix.PYTHON.TOXENV }} + - name: Upload coverage + run: | + curl -o codecov.sh -f https://codecov.io/bash || curl -o codecov.sh -f https://codecov.io/bash || curl -o codecov.sh -f https://codecov.io/bash + bash codecov.sh -n "tox -e ${{ matrix.PYTHON.TOXENV }}" |