Skip to content

Commit

Permalink
Migrate CI to github actions (#163)
Browse files Browse the repository at this point in the history
* Use github actions

* Drop py 2.7 and 3.5

* Pin ubuntu image version to ubuntu-20.04

* Replace status badge

* Delete travis file
  • Loading branch information
stphivos committed May 4, 2023
1 parent 9f11cfc commit 0856f4f
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 56 deletions.
90 changes: 90 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: CI

on:
push:
branches: ['master', 'ci']
pull_request:

jobs:
main:
strategy:
matrix:
include:
- python: '3.6'
tox_env: 'py36-dj111-drf37'

- python: '3.6'
tox_env: 'py36-dj20-drf37'

- python: '3.6'
tox_env: 'py36-dj21-drf37'

- python: '3.6'
tox_env: 'py36-dj22-drf37'

- python: '3.6'
tox_env: 'py36-dj111-drf39'

- python: '3.6'
tox_env: 'py36-dj20-drf39'

- python: '3.6'
tox_env: 'py36-dj21-drf39'

- python: '3.6'
tox_env: 'py36-dj22-drf39'

- python: '3.6'
tox_env: 'py36-dj30-drf310'

- python: '3.7'
tox_env: 'py37-dj111-drf37'

- python: '3.7'
tox_env: 'py37-dj20-drf37'

- python: '3.7'
tox_env: 'py37-dj21-drf37'

- python: '3.7'
tox_env: 'py37-dj22-drf37'

- python: '3.7'
tox_env: 'py37-dj111-drf39'

- python: '3.7'
tox_env: 'py37-dj20-drf39'

- python: '3.7'
tox_env: 'py37-dj21-drf39'

- python: '3.7'
tox_env: 'py37-dj22-drf39'

- python: '3.7'
tox_env: 'py37-dj30-drf310'

runs-on: ubuntu-20.04
name: Python ${{ matrix.python }} with packages ${{ matrix.tox_env }}
steps:
- uses: actions/checkout@v3

- name: set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: install dependencies
run: python -m pip install "tox~=3.22.0" "coverage<4" "setuptools<40.0.0"

- name: run test suite
env:
TOX_ENV: ${{ matrix.tox_env }}
run: tox -ve $TOX_ENV

- name: run coverage
env:
TOX_ENV: ${{ matrix.tox_env }}
run: |
python -m pip install codecov
codecov -e TOX_ENV
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Latest Version](https://img.shields.io/pypi/v/django_mock_queries.svg)](https://pypi.python.org/pypi/django_mock_queries)
[![Build Status](https://travis-ci.org/stphivos/django-mock-queries.svg?branch=master)](https://travis-ci.org/stphivos/django-mock-queries)
[![Build Status](https://github.com/stphivos/django-mock-queries/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stphivos/django-mock-queries/actions/workflows/ci.yml)
[![Code Coverage](https://codecov.io/github/stphivos/django-mock-queries/coverage.svg?branch=master)](https://codecov.io/github/stphivos/django-mock-queries?branch=master)
[![Code Climate](https://codeclimate.com/github/stphivos/django-mock-queries/badges/gpa.svg)](https://codeclimate.com/github/stphivos/django-mock-queries)

Expand Down

0 comments on commit 0856f4f

Please sign in to comment.