Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Dec 13, 2024
1 parent 60b7959 commit a601a0e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Downgrade pip
run: pip3 install pip==19.3.1
python-version: 3.8
- name: Upgrade pip
run: pip3 install -U pip
- name: Cache pip dependencies
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -93,10 +93,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Downgrade pip
run: pip3 install pip==19.3.1
python-version: 3.8
- name: Upgrade pip
run: pip3 install -U pip

- name: Install Ralph
run: pip3 install "${GITHUB_WORKSPACE}"
Expand Down Expand Up @@ -142,13 +141,10 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Downgrade pip
run: pip3 install pip==19.3.1
python-version: ${{ matrix.python-version }}

- name: Install Ralph
run: pip3 install "${GITHUB_WORKSPACE}"
- name: Upgrade pip
run: pip3 install -U pip

- name: Cache pip dependencies
uses: actions/cache@v2
Expand All @@ -171,7 +167,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6]
python-version: [3.8]
db-engine: ["psql", "mysql"]
env:
TEST_DB_ENGINE: ${{ matrix.db-engine }}
Expand Down
26 changes: 20 additions & 6 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ DJANGO_SETTINGS_MODULE = "ralph.settings.local"
TEST_DB_ENGINE = "psql"
DATABASE_PORT = 54320

[settings]
experimental = true

[settings.python]
uv_venv_auto = true

[tools]
docker-compose = "latest"
node = "11.7.0"
Expand All @@ -16,19 +22,27 @@ run = [
]
description = "Install requirements and entrypoints"

[tasks.up]
run = "docker-cli-plugin-docker-compose -f docker/docker-compose-dev.yml up -d"
description = "Start required containers"

[tasks.manage]
run = "dev_ralph"

[tasks.init]
depends = ["install"]
depends = ["install", "up"]
run = [
"""ls 'src/ralph/settings/local.py' ||
(echo 'please create settings file:\ncp src/ralph/settings/local.template src/ralph/settings/local.py' \
&& exit 1)
""",
"python setup.py develop",
"dev_ralph migrate",
"make menu",
"""echo "Installation finished. Run 'mise manage createsuperuser' to be able to log in"""",
"""echo "Or just start server with 'mise run server'"""",
]
description = "Bootstrap new local ralph installation"
alias = "i"

[tasks.up]
run = "docker-cli-plugin-docker-compose -f docker/docker-compose-dev.yml up -d"
description = "Start required containers"

[tasks.server]
depends = ['up']
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dynamic = [
"authors",
"license",
"readme",
"description",
]
dependencies = [
"Django==2.2.28",
Expand Down

0 comments on commit a601a0e

Please sign in to comment.