Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2021-12-08 14:26:24 -08:00
parent e5790ff20b
commit b78a22458a

View File

@ -29,24 +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 "source ${HOME}/.poetry/env" >> "${HOME}/.bashrc"
cp ${HOME}/.poetry/bin/* /usr/local/bin/
source "${HOME}/.bashrc"
- name: Build
shell: bash
run: |
source "${HOME}/.bashrc"
cat "${HOME}/.bashrc"
ls -la /home/runner/.poetry/bin
echo $PATH
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
@ -55,6 +50,5 @@ jobs:
- name: Test with pytest
shell: bash
run: |
source "${HOME}/.bashrc"
cd kittycad
pytest