Skip to content

Commit

Permalink
fix(actions): Explicitly include test workflow instead of using test-…
Browse files Browse the repository at this point in the history
…ddm.yml (FIX).
  • Loading branch information
Nico-AP committed Dec 2, 2024
1 parent 4f22a42 commit d4942dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 58 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish-prerelease-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
jobs:

test-ddm:
uses: ./.github/workflows/test-ddm.yml

publish-docs:
needs: test-ddm
runs-on: ubuntu-latest
strategy:
max-parallel: 4
Expand Down Expand Up @@ -70,6 +66,11 @@ jobs:
run: |
python test_project/manage.py test ddm
publish-docs:
needs: test-ddm
if: success()
uses: ./.github/workflows/publish-docs.yml

deploy:
needs: test-ddm
runs-on: ubuntu-latest
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/test-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,7 @@ on:

jobs:
build-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
db: [sqlite, mysql] # postgres
python-version: [3.8, 3.11]
include:
- db: sqlite
db_engine: django.db.backends.sqlite3

- db: mysql
db_port: 3306
db_engine: django.db.backends.mysql
db_user: root

services:
mysql:
image: mysql
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ddmtestdb
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install psycopg2 mysqlclient
pip install -r test_project/dev_requirements.txt
- name: Run Tests With ${{ matrix.db }}
env:
DB: ${{ matrix.db }}
DB_ENGINE: ${{ matrix.db_engine }}
DB_NAME: ddmtestdb
DB_USER: ${{ matrix.db_user }}
DB_PASSWORD: password
DB_PORT: ${{ matrix.db_port }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python test_project/manage.py test ddm

trigger-publish-docs:
needs: build-test
Expand Down

0 comments on commit d4942dd

Please sign in to comment.