From 16780712315db2445d66a6f43d46e7f1833cd646 Mon Sep 17 00:00:00 2001 From: Nathan Levesque Date: Thu, 21 Sep 2023 13:50:16 -0400 Subject: [PATCH] Removed runtime.txt and fixed poetry.lock --- .github/workflows/ci.yml | 28 ++++++++++++---------------- poetry.lock | 6 +++--- runtime.txt | 1 - 3 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 runtime.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8c0031014..2a3f0bf9f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,30 +48,26 @@ jobs: run: cat Aptfile | sudo xargs apt-get install - name: Install poetry - uses: snok/install-poetry@v1 - with: - version: 1.5.1 - virtualenvs-create: true - virtualenvs-in-project: true + uses: snok/install-poetry@v1 + with: + version: 1.5.1 + virtualenvs-create: true + virtualenvs-in-project: true - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: "3.9.1" + python-version: "3.9.17" + cache: "poetry" - - id: cache - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_reqirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - name: Poetry lock check + run: poetry lock --check - name: Install dependencies run: poetry install --no-interaction - name: Lint - run: pylint ./**/*.py + run: poetry run pylint ./**/*.py # You must also add the Configure sysctl limits step, otherwise Opensearch will not be able to boot. - name: Configure sysctl limits @@ -91,7 +87,7 @@ jobs: export MEDIA_ROOT="$(mktemp -d)" sudo mkdir /var/media sudo chown -R $USER:$USER /var/media - tox + poetry run tox env: DEBUG: 'False' NODE_ENV: 'production' diff --git a/poetry.lock b/poetry.lock index 21f5200159..d4f903b759 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] name = "amqp" @@ -3048,5 +3048,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "3.9.5" -content-hash = "23d9ca8098fd1f0b229ddb03fd3efc5f3c38e02399dbf5bd8ca02271b28b00e7" +python-versions = "3.9.17" +content-hash = "6f7d1cbeb052c645aa0d104c57289a777b47477f979b76c671ebf651f0042bc8" diff --git a/runtime.txt b/runtime.txt deleted file mode 100644 index 1a18179443..0000000000 --- a/runtime.txt +++ /dev/null @@ -1 +0,0 @@ -python-3.9.1