@@ -38,47 +38,46 @@ jobs:
38
38
- name : Install dependencies
39
39
run : |
40
40
python -m pip install --upgrade pip
41
- python -m pip install nox flake8
42
- - name : Lint with flake8
43
- run : |
44
- # Run line only once
45
- # stop the build if there are Python syntax errors or undefined names
46
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
47
- # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
48
- # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41
+ python -m pip install nox
49
42
- name : Test with pytest
50
43
run : |
51
44
nox -s tests_multiple_conda
52
45
53
- test-imports :
46
+ test-twine :
54
47
runs-on : ubuntu-latest
55
48
56
49
steps :
57
50
- uses : actions/checkout@v2
58
- - uses : s-weigand/setup-conda@v1
59
- - run : conda --version
51
+ - name : Set up Python
52
+ uses : actions/setup-python@v2
60
53
- name : Install dependencies
61
54
run : |
62
55
python -m pip install --upgrade pip
63
- python -m pip install nox
64
- - name : Test imports
56
+ python -m pip install nox twine
57
+ - name : Build sdist to test
58
+ run : |
59
+ nox -s build_sdist
60
+ - name : Test with twine
65
61
run : |
66
- nox -s test_import_third_party
62
+ twine check dist/*.tar.gz
67
63
68
- test-twine :
64
+ check-format :
65
+ name : Formatting Check
69
66
runs-on : ubuntu-latest
70
-
71
67
steps :
72
68
- uses : actions/checkout@v2
73
69
- name : Set up Python
74
70
uses : actions/setup-python@v2
75
71
- name : Install dependencies
76
72
run : |
77
73
python -m pip install --upgrade pip
78
- python -m pip install nox twine
79
- - name : Build sdist to test
80
- run : |
81
- nox -s build_sdist
82
- - name : Test with twine
74
+ python -m pip install flake8
75
+ - name : Lint with flake8
83
76
run : |
84
- twine check dist/*.tar.gz
77
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
78
+ - name : Run clang-format style check
79
+
80
+ with :
81
+ clang-format-version : ' 13'
82
+ check-path : ' src/_cds'
83
+ exclude-regex : ' (clinic|pythoncapi_compat)'
0 commit comments