diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..11a1b60 --- /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: | + PYTHONPATH=. DJANGO_SETTINGS_MODULE=test_settings pytest wistiavideo 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