Skip to content

Commit 1678071

Browse files
committed
Removed runtime.txt and fixed poetry.lock
1 parent 6bdac3d commit 1678071

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,26 @@ jobs:
4848
run: cat Aptfile | sudo xargs apt-get install
4949

5050
- name: Install poetry
51-
uses: snok/install-poetry@v1
52-
with:
53-
version: 1.5.1
54-
virtualenvs-create: true
55-
virtualenvs-in-project: true
51+
uses: snok/install-poetry@v1
52+
with:
53+
version: 1.5.1
54+
virtualenvs-create: true
55+
virtualenvs-in-project: true
5656

5757
- name: Set up Python
58-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v4
5959
with:
60-
python-version: "3.9.1"
60+
python-version: "3.9.17"
61+
cache: "poetry"
6162

62-
- id: cache
63-
uses: actions/cache@v1
64-
with:
65-
path: ~/.cache/pip
66-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_reqirements.txt') }}
67-
restore-keys: |
68-
${{ runner.os }}-pip-
63+
- name: Poetry lock check
64+
run: poetry lock --check
6965

7066
- name: Install dependencies
7167
run: poetry install --no-interaction
7268

7369
- name: Lint
74-
run: pylint ./**/*.py
70+
run: poetry run pylint ./**/*.py
7571

7672
# You must also add the Configure sysctl limits step, otherwise Opensearch will not be able to boot.
7773
- name: Configure sysctl limits
@@ -91,7 +87,7 @@ jobs:
9187
export MEDIA_ROOT="$(mktemp -d)"
9288
sudo mkdir /var/media
9389
sudo chown -R $USER:$USER /var/media
94-
tox
90+
poetry run tox
9591
env:
9692
DEBUG: 'False'
9793
NODE_ENV: 'production'

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)