diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c554404 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Test + +on: + - push + +jobs: + build: + name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + python-version: + - 3.8 + - 3.9 + tox-environment: + - django32 + - django42 + include: + - python-version: 3.9 + - tox-environment: lint + + env: + TOXENV: ${{ matrix.tox-environment }} + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: pip install tox + + - name: Run tests + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 37d4ca3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -install: pip install tox -script: tox -e $TOX_ENV -matrix: - include: - - python: 3.8 - env: TOX_ENV=py38-django32 - - - python: 3.8 - env: TOX_ENV=py38-django42 - - - python: 3.9 - env: TOX_ENV=py39-django32 - - - python: 3.9 - env: TOX_ENV=py39-django42