Move paramiko job to github actions (#5565)

This commit is contained in:
Alex Gaynor 2020-11-13 19:55:05 -05:00 committed by GitHub
parent 488cd740bb
commit d22bdc87ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 3 additions and 60 deletions

View file

@ -213,6 +213,7 @@ jobs:
strategy:
matrix:
DOWNSTREAM:
- paramiko
- pyopenssl
- twisted
- aws-encryption-sdk
@ -228,6 +229,7 @@ jobs:
python-version: 3.7
- run: python -m pip install -U pip wheel
- run: ./.github/downstream.d/${{ matrix.DOWNSTREAM }}.sh install
- run: pip uninstall -y enum34
- run: pip install .
- run: ./.github/downstream.d/${{ matrix.DOWNSTREAM }}.sh run

View file

@ -1,31 +0,0 @@
sudo: true
dist: focal
language: python
cache:
directories:
- $HOME/.cache/pip
- $HOME/ossl-2/
# Only build master, the version branches (e.g. 1.7.x), and
# version tags (which are apparently considered branches by travis)
branches:
only:
- master
- /^\d+\.\d+\.x$/
- /^\d+\.\d+(\.\d+)?$/
matrix:
include:
# Setting 'python' is just to make travis's UI a bit prettier
# TODO: This needs to be moved to GHA, but it fails there. The
# confusing part is why it passes on Travis!
- python: 3.7
env: DOWNSTREAM=paramiko
install:
- ./.travis/install.sh
script:
- ./.travis/run.sh

View file

@ -1,12 +0,0 @@
#!/bin/bash
set -e
set -x
pip install -U pip
pip install virtualenv
python -m virtualenv ~/.venv
source ~/.venv/bin/activate
# If we pin coverage it must be kept in sync with tox.ini and .github/workflows/ci.yml
pip install tox coverage

View file

@ -1,11 +0,0 @@
#!/bin/bash -ex
source ~/.venv/bin/activate
downstream_script="${TRAVIS_BUILD_DIR}/.travis/downstream.d/${DOWNSTREAM}.sh"
if [ ! -x "$downstream_script" ]; then
exit 1
fi
$downstream_script install
pip install .
$downstream_script run

View file

@ -16,8 +16,6 @@ recursive-include tests *.py
exclude vectors
recursive-exclude vectors *
exclude .travis.yml .travis
recursive-exclude .travis *
recursive-exclude .github *
exclude release.py .coveragerc codecov.yml .readthedocs.yml dev-requirements.txt rtd-requirements.txt tox.ini

View file

@ -9,9 +9,6 @@ pyca/cryptography
:target: https://cryptography.io
:alt: Latest Docs
.. image:: https://travis-ci.org/pyca/cryptography.svg?branch=master
:target: https://travis-ci.org/pyca/cryptography
.. image:: https://github.com/pyca/cryptography/workflows/CI/badge.svg?branch=master
:target: https://github.com/pyca/cryptography/actions?query=workflow%3ACI+branch%3Amaster

View file

@ -8,7 +8,7 @@ extras =
test
ssh: ssh
deps =
# This must be kept in sync with .travis/install.sh and .github/workflows/ci.yml
# This must be kept in sync with .github/workflows/ci.yml
coverage
./vectors
randomorder: pytest-randomly