Debian Codegraph @

.circleci/config.yml

raw
1 version: 2.1
2
3
4 orbs:
5 orb: invocations/[email protected]
6
7
8 jobs:
9 # Mostly for our downstream packagers, who want ability to unpack the sdist
10 # and run tests that way, instead of git cloning. Thus, we make sure that's
11 # doable.
12 sdist-test-suite:
13 executor:
14 name: orb/default
15 version: "3.9"
16 steps:
17 - orb/setup
18 - run: inv release.build --no-wheel --directory dist
19 - run: |
20 cd dist
21 tar xzvf *.tar.gz
22 rm -v *.tar.gz
23 cd paramiko-*
24 pip install -e .
25 inv -e test
26 - orb/debug
27
28 kerberos:
29 executor:
30 name: orb/default
31 version: "3.9"
32 steps:
33 - orb/setup
34 # Required to actually see all of universe/multiverse :(
35 - run: sudo apt update
36 # System reqs to install/build gssapi c-ext & friends (who only
37 # appear to offer wheels for Windows)
38 - run: sudo apt install -y libkrb5-dev krb5-admin-server krb5-kdc
39 # Our gssapi-supporting flavor, eg gssapi, pyasn1 etc
40 - run: pip install -e '.[gssapi]'
41 # Test-only deps for Kerberos (if they are importable it triggers
42 # running the kerberos tests instead of skipping them)
43 - run: pip install k5test
44 # Do the thing, win the points!
45 - run: inv test
46 - orb/debug
47
48 # TODO: move to orb, rub on other projects too
49 spellcheck:
50 executor:
51 name: orb/default
52 version: "3.9"
53 steps:
54 - orb/setup
55 - run: codespell
56 - orb/debug
57
58
59 workflows:
60 main:
61 jobs:
62 # The basics
63 - orb/lint:
64 name: Lint
65 - orb/format:
66 name: Style check
67 - spellcheck:
68 name: Spellcheck
69 # Main test run, w/ coverage, and latest-supported cryptography
70 - orb/coverage:
71 name: Test
72 # Non-coverage runs w/ other crypto versions.
73 # (Phrased as 2-dimensional matrix but 3.6 only for now to save credits)
74 - orb/test:
75 name: Test << matrix.version >> w/ << matrix.pip-overrides >>
76 matrix:
77 parameters:
78 version: ["3.9"]
79 # TODO: I don't see a nicer way to do this that doesn't require
80 # making the orb know too much about its client code...
81 # TODO: the upper end of this needs to change and/or grow more
82 # cells, periodically
83 # TODO: see if there's a non shite way to use bucketing here,
84 # somewhere between yaml, pip and bash all escapes get fucky
85 # TODO: what is our current oldest/newest cryptography supported
86 # versions? DOES that change from py3.6->3.9?
87 pip-overrides: ["cryptography==3.3.2", "cryptography==39.0.0"]
88 # Kerberos tests. Currently broken :(
89 #- kerberos:
90 # name: Test 3.6 w/ Kerberos support
91 # # No point testing k5 if base tests already fail
92 # requires: ["Test 3.6 (w/ coverage, latest crypto)"]
93 - orb/test-release:
94 name: Release test
95 # Ensure test suite is included in sdist & functions appropriately
96 - sdist-test-suite:
97 name: Test within sdist
98 requires:
99 - "Test"
100 - "Release test"
101 # Test other interpreters if main passed
102 - orb/test:
103 name: Test << matrix.version >>
104 requires: ["Test"]
105 matrix:
106 parameters:
107 version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
108 # Test doc building if main test suite passed (no real reason to spend
109 # all those credits if the main tests would also fail...)
110 - orb/docs:
111 name: "Docs"
112 requires: ["Test"]
113
114 # TODO: grab and run Fabric's test suite with ourselves (similar to how
115 # cryptography uses ours)
116 # TODO: integration 'suite' hitting 1 or more versions of OpenSSH as
117 # target server (and hell maybe other way 'round too)