From ed54482e9e897cccaccd71b1666b8daa42b87f54 Mon Sep 17 00:00:00 2001 From: Rezaul Karim Shaon Date: Wed, 7 Aug 2024 23:58:34 +0600 Subject: [PATCH 1/3] github action - test file added --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..71a6e87 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.8, 3.9, 3.10] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + env: + DJANGO_SETTINGS_MODULE: 'chat.settings' + run: python manage.py test From a39868f0d93b4d4977e5bd09efcb140395f3fb5b Mon Sep 17 00:00:00 2001 From: Rezaul Karim Shaon Date: Thu, 8 Aug 2024 00:01:40 +0600 Subject: [PATCH 2/3] github action - test file updated --- .github/workflows/test.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71a6e87..f0b02b0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,19 +8,22 @@ jobs: strategy: matrix: - python-version: [3.8, 3.9, 3.10] + python-version: [3.8, 3.9, 3.10, 3.11, 3.12] steps: - uses: actions/checkout@v3 - - name: Set up Python + + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt + - name: Run Tests env: - DJANGO_SETTINGS_MODULE: 'chat.settings' + DJANGO_SETTINGS_MODULE: 'chat.settings' # Ensure this is your correct settings module run: python manage.py test From 6312f2ccc7e5f5b19092ca9ede4fd3fc1167e383 Mon Sep 17 00:00:00 2001 From: Rezaul Karim Shaon Date: Thu, 8 Aug 2024 00:02:31 +0600 Subject: [PATCH 3/3] github action - test file deleted --- .github/workflows/test.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index f0b02b0..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Test - -on: [push, pull_request] - -jobs: - test: - runs-on: ubuntu-latest - - strategy: - matrix: - python-version: [3.8, 3.9, 3.10, 3.11, 3.12] - - steps: - - uses: actions/checkout@v3 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Run Tests - env: - DJANGO_SETTINGS_MODULE: 'chat.settings' # Ensure this is your correct settings module - run: python manage.py test