Skip to content

Commit

Permalink
Migrate to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
const-cloudinary committed Dec 23, 2024
1 parent fe91605 commit 870327d
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 70 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Cloudinary Python SDK Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version:
- 2.7
- 3.9
- 3.10
- 3.11
- 3.12
- 3.13
toxenv:
- py27-core
- py39-core
- py310-core
- py311-core
- py312-core
- py313-core
- py27-django111
- py39-django32
- py310-django42
- py311-django42
- py312-django50
- py313-django51

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox pytest
- name: Set up Cloudinary URL
run: |
export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
- name: Run tests
run: |
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
tox -e ${{ matrix.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

0 comments on commit 870327d

Please sign in to comment.