Skip to content

Commit 9e22cd6

Browse files
authored
Move CI to GitHub Actions (#637)
1 parent acdb5fb commit 9e22cd6

File tree

9 files changed

+78
-1121
lines changed

9 files changed

+78
-1121
lines changed

.github/workflows/main.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
tests:
13+
name: ${{ matrix.database }} Python ${{ matrix.python-version }}
14+
runs-on: ubuntu-18.04
15+
16+
strategy:
17+
matrix:
18+
python-version:
19+
- 3.5
20+
- 3.6
21+
- 3.7
22+
- 3.8
23+
database:
24+
- mysql:5.6
25+
- mysql:5.7
26+
# - mariadb:5.5
27+
- mariadb:10.0
28+
- mariadb:10.1
29+
- mariadb:10.2
30+
- mariadb:10.3
31+
- mariadb:10.4
32+
33+
services:
34+
database:
35+
image: ${{ matrix.database }}
36+
ports:
37+
- 3306:3306
38+
env:
39+
MYSQL_ROOT_PASSWORD: hunter2
40+
41+
env:
42+
DB_HOST: 127.0.0.1
43+
DB_USER: root
44+
DB_PASSWORD: hunter2
45+
COVERALLS_REPO_TOKEN: 7l8yKtg4su0M31T0eGIaM0tnjvH0Rd5PM
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
- uses: actions/setup-python@v1
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
- uses: actions/cache@v1
53+
with:
54+
path: ~/.cache/pip
55+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
56+
restore-keys: |
57+
${{ runner.os }}-pip-
58+
- name: Upgrade packaging tools
59+
run: python -m pip install --upgrade pip setuptools virtualenv
60+
- name: Install percona-toolkit
61+
run: sudo apt-get install -y percona-toolkit
62+
- name: Install dependencies
63+
run: python -m pip install --upgrade coveralls tox tox-gh-actions
64+
- name: Run tox targets for ${{ matrix.python-version }}
65+
run: python -m tox -- -x
66+
- name: Upload coverage
67+
run: |
68+
coverage combine
69+
coveralls --rcfile=setup.cfg

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.travis/before_script.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

.travis/oracle.pgp-key

Lines changed: 0 additions & 432 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Django-MySQL
55
.. image:: https://img.shields.io/pypi/v/django-mysql.svg
66
:target: https://pypi.python.org/pypi/django-mysql
77

8-
.. image:: https://travis-ci.org/adamchainz/django-mysql.svg?branch=master
9-
:target: https://travis-ci.org/adamchainz/django-mysql
8+
.. image:: https://github.com/adamchainz/django-mysql.svg?branch=master/actions?workflow=CI
9+
:target: https://github.com/adamchainz/django-mysql/actions?workflow=CI
1010

1111
.. image:: https://coveralls.io/repos/adamchainz/django-mysql/badge.svg
1212
:target: https://coveralls.io/r/adamchainz/django-mysql

requirements/compile.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -219,29 +219,3 @@
219219
],
220220
check=True,
221221
)
222-
subprocess.run(
223-
[
224-
"python3.9",
225-
*common_args,
226-
"-P",
227-
"Django>=2.2,<2.3",
228-
"-P",
229-
"mysqlclient>=1.3.13",
230-
"-o",
231-
"py39-django22.txt",
232-
],
233-
check=True,
234-
)
235-
subprocess.run(
236-
[
237-
"python3.9",
238-
*common_args,
239-
"-P",
240-
"Django>=3.0a1,<3.1",
241-
"-P",
242-
"mysqlclient>=1.3.13",
243-
"-o",
244-
"py39-django30.txt",
245-
],
246-
check=True,
247-
)

0 commit comments

Comments
 (0)