Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions CI #131

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Build:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: '3.6'
- python-version: '3.10'
steps:
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v2
with:
python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v2
- run: pip install -U pip wheel setuptools tox tox-gh-actions
- run: tox
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

20 changes: 15 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
[tox]
envlist =
py{36,37,38,39}-django{22,30,31}
py{36,37,38}-django{22,30,31}
py{38,39,310}-django{40}

[testenv]
setenv = PYTHONPATH = {toxinidir}
commands = py.test -s tests --cov=enumfields --cov-report=term-missing
deps =
djangorestframework>=3.7
pytest-django
pytest-coverage
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
pytest-cov
django22: Django~=2.2.0
django30: Django~=3.0.0
django31: Django~=3.1.0
django40: Django~=4.0.0

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310