@@ -45,35 +45,29 @@ jobs:
45
45
sudo apt install bubblewrap
46
46
export PIPENV_VENV_IN_PROJECT=1
47
47
export PIP_IGNORE_INSTALLED=1
48
- python -m pip install --no-cache-dir --user pip
49
- python -m pip install --no-cache-dir --user pipenv
48
+ pip install --no-cache-dir --user pip setuptools pipenv
50
49
51
50
- name : Run tests
52
51
run : |
53
- if [ -f requirements.txt ]; then python -m pipenv install --dev -r requirements.txt; fi
54
- if [ -f requirements-dev.txt ]; then python -m pipenv install --dev -r requirements-dev.txt; fi
55
- pipenv --python `python --version | grep -Eo '3\.[0-9]+'` sync --dev
56
- python -m pipenv run coverage run -m unittest
57
-
58
- # - name: Run tests
59
- # run: |
60
- # if [ -f requirements.txt ]; then pipenv install --dev -r requirements.txt; fi
61
- # if [ -f requirements-dev.txt ]; then pipenv install --dev -r requirements-dev.txt; fi
62
- # bwrap \
63
- # --unshare-all \
64
- # --clearenv \
65
- # --setenv EXAMPLE VALUE \
66
- # --ro-bind / / \
67
- # --bind ${{ github.workspace }} ${{ github.workspace }} \
68
- # --tmpfs $HOME \
69
- # --tmpfs /tmp \
70
- # --tmpfs /var \
71
- # --tmpfs /run --dir /run/user/$(id -u) \
72
- # --dev /dev \
73
- # --proc /proc \
74
- # --die-with-parent \
75
- # --new-session \
76
- # python -m pipenv run coverage run -m unittest
52
+ pipenv shell
53
+ pipenv install -e .
54
+ if [ -f requirements.txt ]; then pipenv install --dev -r requirements.txt; fi
55
+ if [ -f requirements-dev.txt ]; then pipenv install --dev -r requirements-dev.txt; fi
56
+ bwrap \
57
+ --unshare-all \
58
+ --clearenv \
59
+ --setenv EXAMPLE VALUE \
60
+ --ro-bind / / \
61
+ --bind ${{ github.workspace }} ${{ github.workspace }} \
62
+ --tmpfs $HOME \
63
+ --tmpfs /tmp \
64
+ --tmpfs /var \
65
+ --tmpfs /run --dir /run/user/$(id -u) \
66
+ --dev /dev \
67
+ --proc /proc \
68
+ --die-with-parent \
69
+ --new-session \
70
+ python -m pipenv run coverage run -m unittest
77
71
78
72
- name : Run linting
79
73
run : pre-commit run --all-files
0 commit comments