8
.github/workflows/build-test.yml
vendored
8
.github/workflows/build-test.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user