| 1 |
name: bitshuffle-ci-build |
| 2 |
on: |
| 3 |
pull_request: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
push: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
|
| 10 |
jobs: |
| 11 |
|
| 12 |
lint-code: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v3 |
| 16 |
|
| 17 |
- name: Set up Python 3.10 |
| 18 |
uses: actions/setup-python@v4 |
| 19 |
with: |
| 20 |
python-version: "3.10" |
| 21 |
|
| 22 |
- name: Install pip dependencies |
| 23 |
run: | |
| 24 |
pip install black flake8 |
| 25 |
|
| 26 |
- name: Run flake8 |
| 27 |
run: | |
| 28 |
flake8 --config $GITHUB_WORKSPACE/.github/workflows/flake8_python.cfg bitshuffle tests |
| 29 |
flake8 --config $GITHUB_WORKSPACE/.github/workflows/flake8_cython.cfg bitshuffle tests |
| 30 |
|
| 31 |
- name: Check code with black |
| 32 |
run: black --check . |