Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Dec 12, 2024
1 parent a9d3d7d commit b6f4134
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev.txt', 'docs.txt', 'prod.txt' 'test.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('dev.txt', 'docs.txt', 'prod.txt', 'test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install Ralph's python dependencies
run: pip3 install -r "${GITHUB_WORKSPACE}/requirements/code_style.txt"
run: pip3 install -r "${GITHUB_WORKSPACE}/requirements/dev.txt"

- name: Run flake8
run: make flake
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev.txt', 'docs.txt', 'prod.txt' 'test.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('dev.txt', 'docs.txt', 'prod.txt', 'test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
Expand Down Expand Up @@ -154,15 +154,14 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev.txt', 'docs.txt', 'prod.txt' 'test.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('dev.txt', 'docs.txt', 'prod.txt', 'test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install Ralph's python dependencies
run: |
pip3 install -r "${GITHUB_WORKSPACE}/requirements/test.txt"
pip3 install -r "${GITHUB_WORKSPACE}/requirements/openstack.txt"
- name: Test Ralph's settings
run: ./scripts/test_settings.sh prod test >/dev/null
Expand Down Expand Up @@ -255,7 +254,6 @@ jobs:
- name: Install Ralph's python dependencies
run: |
pip3 install -r "${GITHUB_WORKSPACE}/requirements/test.txt"
pip3 install -r "${GITHUB_WORKSPACE}/requirements/openstack.txt"
- name: Install PostgreSQL driver
if: ${{ matrix.db-engine == 'psql' }}
Expand Down
4 changes: 1 addition & 3 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[env]
_.python.venv = ".venv"
LDFLAGS = "-L/opt/homebrew/opt/openssl/lib"
CPPFLAGS = "-I/opt/homebrew/opt/openssl/include"
DJANGO_SETTINGS_MODULE = "ralph.settings.local"
TEST_DB_ENGINE = "psql"
DATABASE_PORT = 54320
Expand All @@ -26,6 +24,7 @@ run = [
"make menu",
]
description = "Bootstrap new local ralph installation"
alias = "i"

[tasks.up]
run = "docker-cli-plugin-docker-compose -f docker/docker-compose-dev.yml up -d"
Expand All @@ -44,7 +43,6 @@ run = [
"uv pip compile pyproject.toml --extra dev --extra test -o requirements/test.txt",
"uv pip compile pyproject.toml --extra prod -o requirements/prod.txt",
]
alias = "i"
description = "Compile requirements"

[tasks.lint]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ omit = "*migrations*,*tests*,*__init__*,*wsgi.py,*__main__*,*settings*,*manage.p
[project]
name = "Ralph"
version = "20241127.1"
requires-python = ">=3.8"
requires-python = "==3.8.19"
dynamic = [
"scripts",
"entry-points",
Expand Down
3 changes: 0 additions & 3 deletions requirements/code_style.txt

This file was deleted.

0 comments on commit b6f4134

Please sign in to comment.