From 962f6f9818683ef5f6432f091d22945e54b82592 Mon Sep 17 00:00:00 2001 From: Joseph Rhoads Date: Wed, 20 Jan 2021 13:53:05 -0500 Subject: [PATCH] Create Github action for CI (#91) * Create django.yml * Update django.yml Remove django v1.11 as it has reached end of life * Delete .travis.yml --- .github/workflows/django.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 26 -------------------------- 2 files changed, 31 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/django.yml delete mode 100755 .travis.yml diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml new file mode 100644 index 0000000..bc51925 --- /dev/null +++ b/.github/workflows/django.yml @@ -0,0 +1,31 @@ +name: Django CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + django-version: [2.2, 3.0] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install Django==${{ matrix.django-version}} + - name: Run Tests + run: | + python quicktest.py shibboleth diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index 9bc8ef6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -dist: xenial - -language: python - -python: - - 3.5 - - 3.6 - - 3.7 - - 3.8 - -env: - - DJANGO_VERSION=1.11 - - DJANGO_VERSION=2.2 - - DJANGO_VERSION=3.0 - -jobs: - exclude: - - env: DJANGO_VERSION=3.0 - python: 3.5 - -install: - - pip install --upgrade pip - - pip install Django==$DJANGO_VERSION -# Tell Travis how to run the test script itself -script: python quicktest.py shibboleth -