mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Move paramiko job to github actions (#5565)
This commit is contained in:
parent
488cd740bb
commit
d22bdc87ee
8 changed files with 3 additions and 60 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
31
.travis.yml
31
.travis.yml
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue