From f8a9045005cf296ea3cc43f2faa2bb05058100ff Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Thu, 10 Jun 2021 12:17:12 +0300 Subject: [PATCH 1/3] Migrate to GitHub actions --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7ece051 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Python package + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6] + + 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 -r requirements-test.txt + - name: Run tests + run: | + DJANGO_SETTINGS_MODULE=test_settings pytest wistiavideo From 8313b4b55d8ad9ecfedd65fed31d6c6baf978bd9 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Thu, 10 Jun 2021 12:17:51 +0300 Subject: [PATCH 2/3] Delete .travis.yml --- .travis.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f4f0583..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: python -python: - - "3.6" - -env: - - PYTHONPATH=`pwd` - -install: - - pip install -r requirements-test.txt - -script: DJANGO_SETTINGS_MODULE=test_settings pytest wistiavideo From eaf9cce372d4edb72262f1d4ac3080069da28249 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Thu, 10 Jun 2021 12:19:24 +0300 Subject: [PATCH 3/3] include test_settings.py in the path --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ece051..11a1b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,4 +22,4 @@ jobs: pip install -r requirements-test.txt - name: Run tests run: | - DJANGO_SETTINGS_MODULE=test_settings pytest wistiavideo + PYTHONPATH=. DJANGO_SETTINGS_MODULE=test_settings pytest wistiavideo