5
.github/workflows/build-test.yml
vendored
5
.github/workflows/build-test.yml
vendored
@ -29,21 +29,19 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
||||||
echo "export PATH=\"${HOME}/.poetry/bin;\${PATH}\"" >> "${HOME}/.bashrc"
|
echo "export PATH=\"${HOME}/.poetry/bin:\${PATH}\"" >> "${HOME}/.bashrc"
|
||||||
echo "source ${HOME}/.poetry/env" >> "${HOME}/.bashrc"
|
echo "source ${HOME}/.poetry/env" >> "${HOME}/.bashrc"
|
||||||
source "${HOME}/.bashrc"
|
source "${HOME}/.bashrc"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cat "${HOME}/.bashrc"
|
|
||||||
cd kittycad
|
cd kittycad
|
||||||
poetry build
|
poetry build
|
||||||
|
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
source "${HOME}/.bashrc"
|
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
@ -52,6 +50,5 @@ jobs:
|
|||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
source "${HOME}/.bashrc"
|
|
||||||
cd kittycad
|
cd kittycad
|
||||||
pytest
|
pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user