Skip to content

Commit

Permalink
Switch to GH Actions (#18)
Browse files Browse the repository at this point in the history
* Fix travis

* Updated travis CI

* Updated travis CI config

* Removed travis support -switching to gh-actions

* Changed build trigger

* Changed build trigger

* Debugging

* Fix build trigger

* Updated version

---------

Co-authored-by: Dirk Moors <[email protected]>
  • Loading branch information
dirkmoors and Dirk Moors authored Oct 13, 2023
1 parent c4a6201 commit c24b822
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 40 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Python package

on:
pull_request:
branches:
- 'master'
paths-ignore:
- 'docs/*'
- 'example/*'
- 'README.rst'
- 'CONTRIBUTING.rst'
- 'HISTORY.rst'
- '.coverage'
- '.editorconfig'
- '.gitignore'
- '.pre-commit-config.yaml'
- 'LICENSE'
- 'Makefile'
- 'MANIFEST.in'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ Before you submit a pull request, check that it meets these guidelines:
2. If the pull request adds functionality, the docs should be updated. Put
your new functionality into a function with a docstring, and add the
feature to the list in README.rst.
3. The pull request should work for Python 3.8+, and for PyPy. Check
https://travis-ci.org/dirkmoors/drf-tus/pull_requests
3. The pull request should work for Python 3.9+, and for PyPy. Check
https://github.com/dirkmoors/drf-tus/pulls
and make sure that the tests pass for all supported Python versions.

Tips
Expand Down
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
History
-------

2.0.1 (2023-10-13)
++++++++++++++++++

* Repair CI and tests.

2.0.0 (2023-07-06)
++++++++++++++++++

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ drf-tus
.. image:: https://badge.fury.io/py/drf-tus.svg
:target: https://badge.fury.io/py/drf-tus

.. image:: https://travis-ci.org/dirkmoors/drf-tus.svg?branch=master
:target: https://travis-ci.org/dirkmoors/drf-tus
.. image:: https://github.com/OWNER/REPOSITORY/actions/workflows/ci.yml/badge.svg
:target: https://github.com/dirkmoors/drf-tus/actions

A Tus (tus.io) library for Django Rest Framework

Expand Down
2 changes: 1 addition & 1 deletion rest_framework_tus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.0.0"
__version__ = "2.0.1"

tus_api_version = "1.0.0"
tus_api_version_supported = ["1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ max-line-length = 120
exclude = *migrations*, *settings*

[bumpversion]
current_version = 2.0.0
current_version = 2.0.1
commit = True
tag = True

Expand Down
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[tox]
envlist =
{py39,py310,py311}-django32
{py39,py310,py311}-django40
{py39,py310,py311}-django41
{py39,py310,py311}-django42
{py39,py310,py311}-django{32,40,41,42}

[gh-actions]
python =
3.9: py39-django32, py39-django40, py39-django41, py39-django42
3.10: py310-django32, py310-django40, py310-django41, py310-django42
3.11: py311-django32, py311-django40, py311-django41, py311-django42

[testenv]
setenv =
Expand All @@ -18,7 +21,6 @@ deps =
django42: Django>=4.2,<5.0
-r{toxinidir}/requirements_test.txt
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11

0 comments on commit c24b822

Please sign in to comment.