Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2021-12-08 14:18:25 -08:00
parent 7c2a93caa5
commit 3a0a360a41

View File

@ -29,21 +29,19 @@ jobs:
shell: bash
run: |
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"
source "${HOME}/.bashrc"
- name: Build
shell: bash
run: |
cat "${HOME}/.bashrc"
cd kittycad
poetry build
- name: Lint with flake8
shell: bash
run: |
source "${HOME}/.bashrc"
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
@ -52,6 +50,5 @@ jobs:
- name: Test with pytest
shell: bash
run: |
source "${HOME}/.bashrc"
cd kittycad
pytest