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

Migrate to GitHub Actions #413

Closed
wants to merge 4 commits 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
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Cloudinary Python SDK Test

on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]

jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: 2.7
toxenv: py27-core
- python-version: 3.9
toxenv: py39-core
- python-version: "3.10"
toxenv: py310-core
- python-version: 3.11
toxenv: py311-core
- python-version: 3.12
toxenv: py312-core
- python-version: 3.13
toxenv: py313-core
- python-version: 2.7
toxenv: py27-django111
- python-version: 3.9
toxenv: py39-django32
- python-version: 3.10
toxenv: py310-django42
- python-version: 3.11
toxenv: py311-django42
- python-version: 3.12
toxenv: py312-django50
- python-version: 3.13
toxenv: py313-django51
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: |
pip install tox pytest mock

- name: Run tests with tox
env:
TOXENV: ${{ matrix.toxenv }}
DJANGO_SETTINGS_MODULE: django_tests.settings
run: tox -e $TOXENV
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://app.travis-ci.com/cloudinary/pycloudinary.svg)](https://app.travis-ci.com/cloudinary/pycloudinary)
[![Tests](https://github.com/cloudinary/pycloudinary/actions/workflows/test.yml/badge.svg)](https://github.com/cloudinary/pycloudinary/actions/workflows/test.yml)
[![PyPI Version](https://img.shields.io/pypi/v/cloudinary.svg)](https://pypi.python.org/pypi/cloudinary/)
[![PyPI PyVersions](https://img.shields.io/pypi/pyversions/cloudinary.svg)](https://pypi.python.org/pypi/cloudinary/)
[![PyPI DjangoVersions](https://img.shields.io/pypi/djversions/cloudinary.svg)](https://pypi.python.org/pypi/cloudinary/)
Expand Down Expand Up @@ -41,12 +41,12 @@ For the complete documentation, see the [Python SDK Guide](https://cloudinary.co
## Version Support

| SDK Version | Python 2.7 | Python 3.x |
| ----------- | ---------- | ---------- |
|-------------|------------|------------|
| 1.x | ✔ | ✔ |

| SDK Version | Django 1.11 | Django 2.x | Django 3.x | Django 4.x |
| ----------- | ----------- | ---------- | ---------- | ---------- |
| 1.x | ✔ | ✔ | ✔ | ✔ |
| SDK Version | Django 1.11 | Django 2.x | Django 3.x | Django 4.x | Django 5.x |
|-------------|-------------|------------|------------|------------|------------|
| 1.x | ✔ | ✔ | ✔ | ✔ | ✔ |


## Installation
Expand Down
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,22 @@ classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 1.11",
"Framework :: Django :: 2.0",
"Framework :: Django :: 2.1",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Multimedia :: Graphics",
Expand Down
13 changes: 5 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,22 @@
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 1.11",
"Framework :: Django :: 2.0",
"Framework :: Django :: 2.1",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Multimedia :: Graphics",
Expand Down
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
[tox]
envlist =
py{27,37,38,39,310,311}-core
py{27,39,310,311,312,313}-core
py{27}-django{111}
py{37,38,39,310,311}-django{22,32,40,41}
py{39,310,311,312,313}-django{32,42,50,51}

[testenv]
usedevelop = True
commands =
core: python -m pytest test
django{111,22,32}: django-admin.py test -v2 django_tests {env:D_ARGS:}
django{40,41}: django-admin test -v2 django_tests {env:D_ARGS:}
django{111,32}: django-admin.py test -v2 django_tests {env:D_ARGS:}
django{42,50,51}: django-admin test -v2 django_tests {env:D_ARGS:}
passenv = *
deps =
pytest
py27: mock
django111: Django>=1.11,<1.12
django22: Django>=2.2,<2.3
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
setenv =
DJANGO_SETTINGS_MODULE=django_tests.settings
Loading