Reorganise a little to put scripts in bin

This commit is contained in:
Marc Di Luzio 2024-08-11 18:04:21 +01:00
parent f99f67789d
commit 22ad36fb09
4 changed files with 9 additions and 5 deletions

View file

@ -18,12 +18,9 @@ jobs:
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -r requirements.txt python -m pip install -r requirements.txt
- name: Analysing the code with flake8 - name: Run tests
run: | run: |
flake8 --max-line-length 120 $(git ls-files '*.py') bash bin/test.sh
- name: Run tests with pytest
run: |
pytest
- name: Update release branch - name: Update release branch
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
run: | run: |

View file

7
bin/test.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Check formatting and linting
flake8 --max-line-length 120 $(git ls-files '*.py')
# Run pytest
pytest