You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2023/01/10 19:49:05 UTC

[airavata-django-portal] branch develop updated: Switching from Travis CI to GitHub Actions

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/develop by this push:
     new a4ab56c0 Switching from Travis CI to GitHub Actions
a4ab56c0 is described below

commit a4ab56c01fae411c586998bfdb1b6b3d253c0e40
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jan 10 14:48:37 2023 -0500

    Switching from Travis CI to GitHub Actions
---
 .github/workflows/build-and-test.yaml | 44 +++++++++++++++++++++++++++++++++++
 .travis.yml                           | 25 --------------------
 2 files changed, 44 insertions(+), 25 deletions(-)

diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml
new file mode 100644
index 00000000..d5bf01c3
--- /dev/null
+++ b/.github/workflows/build-and-test.yaml
@@ -0,0 +1,44 @@
+name: Build and Test
+on: [push]
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+    steps:
+      - uses: actions/checkout@v3
+      - name: Use latest LTS Node.js
+        uses: actions/setup-node@v3
+        with:
+          node-version: 'lts/*'
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v4
+        with:
+          python-version: ${{ matrix.python-version }}
+      - name: Install dependencies
+        run: |
+          pip install --upgrade pip setuptools wheel
+          pip install -r requirements-dev.txt
+      - name: Run Django Migrate and Check
+        run: |
+          cp django_airavata/settings_local.py.sample django_airavata/settings_local.py
+          python manage.py migrate
+          python manage.py check
+      - name: Run flake8
+        run: |
+          flake8 .
+      - name: Run ESLint on JavaScript code
+        run: |
+          ./lint_js.sh
+      - name: Build JavaScript code
+        run: |
+          ./build_js.sh
+      - name: Run JavaScript unit tests
+        run: |
+          ./test_js.sh
+      # Need to build the frontend client before running some of the Django tests
+      # that use the Django test Client
+      - name: Run Django unit tests
+        run: |
+          ./runtests.py
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 39fadef7..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-language: python
-dist: focal
-python:
-  - "3.6"
-  - "3.7"
-  - "3.8"
-  - "3.9"
-  - "3.10"
-  # - "3.11"
-install:
-  - nvm install
-  - nvm use
-  - pip install --upgrade pip setuptools wheel
-  - pip install -r requirements-dev.txt
-script:
-  - cp django_airavata/settings_local.py.sample django_airavata/settings_local.py
-  - python manage.py migrate
-  - python manage.py check
-  - flake8 .
-  - ./lint_js.sh
-  - ./build_js.sh
-  - ./test_js.sh
-  # Need to build the frontend client before running some of the Django tests
-  # that use the Django test Client
-  - ./runtests.py