Skip to content

Commit

Permalink
Lock Pipenv version temporary to avoid breaking CI
Browse files Browse the repository at this point in the history
  • Loading branch information
road-master committed Nov 6, 2021
1 parent 2212654 commit a481493
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: python -m pip install pipenv
- run: python -m pip install pipenv==2021.5.29
- run: python -m pipenv install --skip-lock --dev
- uses: paambaati/[email protected]
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: python -m pip install pipenv
- run: python -m pip install pipenv==2021.5.29
- run: python -m pipenv install --skip-lock --dev
- run: python -m pipenv run invoke dist
- uses: pypa/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install pipenv
- run: python -m pip install pipenv==2021.5.29
- run: python -m pipenv install --python ${{ matrix.python-version }} --skip-lock --dev
- run: python -m pipenv run invoke test
check_style:
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: python -m pip install pipenv
- run: python -m pip install pipenv==2021.5.29
- run: python -m pipenv install --skip-lock --dev
- run: python -m pipenv run invoke style --check
check_lint:
Expand All @@ -45,7 +45,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: python -m pip install pipenv
- run: python -m pip install pipenv==2021.5.29
- run: python -m pipenv install --skip-lock --dev
- run: python -m pipenv run invoke lint
check_complexity:
Expand All @@ -55,6 +55,6 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: python -m pip install pipenv
- run: python -m pip install pipenv==2021.5.29
- run: python -m pipenv install --skip-lock --dev
- run: python -m pipenv run invoke xenon
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM mstmelody/python-ffmpeg:20210822032000 as production
COPY showroompodcast LICENSE Pipfile pyproject.toml README.md setup.cfg setup.py /workspace/
# see: https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
ENV PIPENV_VENV_IN_PROJECT=1
RUN pip --no-cache-dir install pipenv \
RUN pip --no-cache-dir install pipenv==2021.5.29 \
&& pipenv install --deploy --skip-lock \
&& pipenv run python -m pip install --editable . \
&& pip uninstall -y pipenv virtualenv-clone virtualenv
Expand All @@ -11,7 +11,7 @@ VOLUME ["/workspace/output"]
ENTRYPOINT [ ".venv/bin/showroom-podcast" ]

FROM production as development
RUN pip --no-cache-dir install pipenv \
RUN pip --no-cache-dir install pipenv==2021.5.29 \
&& pipenv install --deploy --dev
ENTRYPOINT [ "pipenv", "run" ]
CMD ["pytest"]

0 comments on commit a481493

Please sign in to comment.