Skip to content

Commit

Permalink
Removed runtime.txt and fixed poetry.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun committed Sep 21, 2023
1 parent 6bdac3d commit 1678071
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion runtime.txt

This file was deleted.

0 comments on commit 1678071

Please sign in to comment.