@@ -38,47 +38,46 @@ jobs:
3838 - name : Install dependencies
3939 run : |
4040 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
4942 - name : Test with pytest
5043 run : |
5144 nox -s tests_multiple_conda
5245
53- test-imports :
46+ test-twine :
5447 runs-on : ubuntu-latest
5548
5649 steps :
5750 - 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
6053 - name : Install dependencies
6154 run : |
6255 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
6561 run : |
66- nox -s test_import_third_party
62+ twine check dist/*.tar.gz
6763
68- test-twine :
64+ check-format :
65+ name : Formatting Check
6966 runs-on : ubuntu-latest
70-
7167 steps :
7268 - uses : actions/checkout@v2
7369 - name : Set up Python
7470 uses : actions/setup-python@v2
7571 - name : Install dependencies
7672 run : |
7773 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
8376 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+ uses : jidicula/clang-format-action@v4.6.2
80+ with :
81+ clang-format-version : ' 13'
82+ check-path : ' src/_cds'
83+ exclude-regex : ' (clinic|pythoncapi_compat)'
0 commit comments