Skip to content

Commit a46024f

Browse files
committed
Fix devcontainer and scripts
1 parent d59f6fc commit a46024f

5 files changed

Lines changed: 16 additions & 2 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ RUN mkdir -p ${WORKSPACE} \
3131
USER ${USERNAME}
3232
WORKDIR ${WORKSPACE}
3333

34+
# RUN export PATH=/home/vscode/.local/bin:$$PATH
35+
# RUN pip install black flake8 pytest
36+
3437
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
3538
# COPY requirements.txt /tmp/pip-tmp/
3639
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ jobs:
3131
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3232
- name: Test with pytest
3333
run: |
34+
# install local module
35+
pip install .
36+
# test with Pytest
3437
pytest

scripts/install-deps.sh

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22

3-
python -m pip install --upgrade pip
4-
pip install black build flake8 pytest
3+
set -eux
4+
5+
pip install black flake8 pytest
6+
57
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
68
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi

scripts/lint.sh

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -eux
4+
35
# stop the build if there are Python syntax errors or undefined names
46
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
57

scripts/test.sh

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22

3+
set -eux
4+
5+
pip install -e .
6+
37
pytest

0 commit comments

Comments
 (0)