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: |
|
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: |
|
||||||
|
|
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