Reorganise a little to put scripts in bin
This commit is contained in:
parent
f99f67789d
commit
22ad36fb09
4 changed files with 9 additions and 5 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
@ -18,12 +18,9 @@ jobs:
|
|||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
- name: Analysing the code with flake8
|
||||
- name: Run tests
|
||||
run: |
|
||||
flake8 --max-line-length 120 $(git ls-files '*.py')
|
||||
- name: Run tests with pytest
|
||||
run: |
|
||||
pytest
|
||||
bash bin/test.sh
|
||||
- name: Update release branch
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
|
|
7
bin/test.sh
Executable file
7
bin/test.sh
Executable 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
|
Loading…
Add table
Reference in a new issue