Mercurial > p > roundup > code
comparison .github/workflows/ci-test.yml @ 6842:d8d4600c49eb
More fixes to yaml using linter:
https://rhysd.github.io/actionlint/
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 31 Aug 2022 18:11:43 -0400 |
| parents | 3671c0f6352e |
| children | c61ab02ad067 |
comparison
equal
deleted
inserted
replaced
| 6841:3671c0f6352e | 6842:d8d4600c49eb |
|---|---|
| 81 pyjwt pytz whoosh | 81 pyjwt pytz whoosh |
| 82 | 82 |
| 83 - name: Install aux packages that need versions differences | 83 - name: Install aux packages that need versions differences |
| 84 # if zstd fails install, keep going with test, don't abort | 84 # if zstd fails install, keep going with test, don't abort |
| 85 run: | | 85 run: | |
| 86 set -xv | |
| 86 pip install zstd || true | 87 pip install zstd || true |
| 87 if "$${{ matrix.python-version }}" != "2."* ]]; then | 88 if $(python -c 'import sys; print("%d.%d.%d"%(sys.version_info.major, sys.version_info.minor, sys.version_info.micro))' != "2."* ]]; then |
| 88 pip install Markdown; fi | 89 pip install Markdown; fi |
| 89 | 90 |
| 90 - name: Install pytest and other packages needed for running tests | 91 - name: Install pytest and other packages needed for running tests |
| 91 run: pip install codecov flake8 pytest pytest-cov requests | 92 run: pip install codecov flake8 pytest pytest-cov requests |
| 92 | 93 |
| 93 - name: Test build roundup and install locale so lang tests work. | 94 - name: Test build roundup and install locale so lang tests work. |
| 94 run: | | 95 run: | |
| 95 ${{ matrix.python-version }} setup.py install | 96 python setup.py install |
| 96 (cd locale; make local_install; ls -lR locale/de/LC_MESSAGES) | 97 (cd locale; make local_install; ls -lR locale/de/LC_MESSAGES) |
| 97 | 98 |
| 98 - name: run flake8 in warn only mode | 99 - name: run flake8: abort for syntax error, otherwise warn only |
| 99 run: | | 100 run: | |
| 100 # stop the build for Python syntax errors or undefined names | 101 # stop the build for Python syntax errors or undefined names |
| 101 flake8 roundup --count --select=E9,F63,F7,F82 --show-source --statistics | 102 flake8 roundup --count --select=E9,F63,F7,F82 --show-source --statistics |
| 102 # exit-zero treats all errors as warnings. | 103 # exit-zero treats all errors as warnings. |
| 103 # The GitHub editor is 127 chars wide | 104 # The GitHub editor is 127 chars wide |
| 113 with: | 114 with: |
| 114 verbose: true | 115 verbose: true |
| 115 | 116 |
| 116 - name: test build_doc | 117 - name: test build_doc |
| 117 run: | | 118 run: | |
| 118 ${{ matrix.python-version }} ./setup.py build_doc | 119 python ./setup.py build_doc |
