version: 2.1 orbs: orb: invocations/orb@1.0.4 jobs: sdist-test-suite: executor: name: orb/default version: "3.6" steps: - orb/setup - run: inv release.build --no-wheel --directory . - run: | cd dist tar xzvf *.tar.gz rm -v *.tar.gz cd paramiko-* pip install -e . inv -e test - orb/debug kerberos: executor: name: orb/default version: "3.6" steps: - orb/setup # Required to actually see all of universe/multiverse :( - run: sudo apt update # System reqs to install/build gssapi c-ext & friends (who only # appear to offer wheels for Windows) - run: sudo apt install -y libkrb5-dev krb5-admin-server krb5-kdc # Our gssapi-supporting flavor, eg gssapi, pyasn1 etc - run: pip install -e '.[gssapi]' # Test-only deps for Kerberos (if they are importable it triggers # running the kerberos tests instead of skipping them) - run: pip install k5test # Do the thing, win the points! - run: inv test - orb/debug workflows: main: jobs: # The basics - orb/lint: name: Lint - orb/format: name: Style check # Main test run, w/ coverage, and latest-supported cryptography - orb/coverage: name: Test 3.6 (w/ coverage, latest crypto) # Non-coverage runs w/ other crypto versions. # (Phrased as 2-dimensional matrix but 3.6 only for now to save credits) - orb/test: name: Test << matrix.version >> w/ << matrix.pip-overrides >> matrix: parameters: version: ["3.6"] # TODO: I don't see a nicer way to do this that doesn't require # making the orb know too much about its client code... pip-overrides: ["cryptography==2.5", "cryptography==3.4"] # Kerberos tests. Currently broken :( #- kerberos: # name: Test 3.6 w/ Kerberos support # # No point testing k5 if base tests already fail # requires: ["Test 3.6 (w/ coverage, latest crypto)"] - orb/test-release: name: Release test # Ensure test suite is included in sdist & functions appropriately - sdist-test-suite: name: Test within sdist requires: - "Test 3.6 (w/ coverage, latest crypto)" - "Release test" # Test other interpreters if main passed - orb/test: name: Test << matrix.version >> requires: ["Test 3.6 (w/ coverage, latest crypto)"] matrix: parameters: version: ["3.7", "3.8", "3.9"] # Test doc building if main test suite passed (no real reason to spend # all those credits if the main tests would also fail...) - orb/docs: name: "Docs" requires: ["Test 3.6 (w/ coverage, latest crypto)"]