Skip to content

Commit 58de834

Browse files
committed
Replace Travis + Appveyor with GitHub Actions (WIP)
1 parent d1bbc08 commit 58de834

File tree

10 files changed

+58
-199
lines changed

10 files changed

+58
-199
lines changed

.ci/appveyor.yml

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

.ci/deploy.linux.sh

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

.ci/deploy.osx.sh

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

.ci/deps.linux.sh

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

.ci/deps.osx.sh

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

.ci/run_with_env.cmd

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

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-18.04, windows-2019, macos-10.15]
15+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
16+
exclude:
17+
- os: windows-2019
18+
python-version: pypy3
19+
# TODO: Remove this; see:
20+
# https://github.com/actions/setup-python/issues/151
21+
# https://github.com/tox-dev/tox/issues/1704
22+
# https://foss.heptapod.net/pypy/pypy/-/issues/3331
23+
env:
24+
BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
25+
BABEL_CLDR_QUIET: "1"
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip setuptools wheel
35+
python -m pip install tox tox-gh-actions==2.1.0
36+
- name: Run test via Tox
37+
run: tox --skip-missing-interpreters
38+
- uses: codecov/codecov-action@v1

.travis.yml

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

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,16 @@ def run(self):
4444
'License :: OSI Approved :: BSD License',
4545
'Operating System :: OS Independent',
4646
'Programming Language :: Python',
47-
'Programming Language :: Python :: 2',
48-
'Programming Language :: Python :: 2.7',
4947
'Programming Language :: Python :: 3',
50-
'Programming Language :: Python :: 3.4',
51-
'Programming Language :: Python :: 3.5',
5248
'Programming Language :: Python :: 3.6',
5349
'Programming Language :: Python :: 3.7',
50+
'Programming Language :: Python :: 3.8',
51+
'Programming Language :: Python :: 3.9',
5452
'Programming Language :: Python :: Implementation :: CPython',
5553
'Programming Language :: Python :: Implementation :: PyPy',
5654
'Topic :: Software Development :: Libraries :: Python Modules',
5755
],
58-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
56+
python_requires='>=3.6',
5957
packages=['babel', 'babel.messages', 'babel.localtime'],
6058
include_package_data=True,
6159
install_requires=[

tox.ini

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
[tox]
2-
envlist = py27, pypy, py34, py35, py36, py37, pypy3, py27-cdecimal
2+
envlist =
3+
py{36,37,38,39}
4+
pypy3
35

46
[testenv]
57
deps =
6-
pytest==4.3.1;python_version<"3.5"
7-
pytest==6.1.2;python_version>="3.5"
8+
pytest
89
pytest-cov
9-
cdecimal: m3-cdecimal
1010
freezegun==0.3.12
11-
backports.zoneinfo;python_version>"3.6" and python_version<"3.9"
11+
backports.zoneinfo;python_version<"3.9"
12+
tzdata;sys_platform == 'win32'
1213
whitelist_externals = make
13-
commands = make clean-cldr test
14-
passenv = PYTHON_TEST_FLAGS
14+
commands = make clean-cldr test-cov
15+
passenv =
16+
BABEL_*
17+
PYTHON_*
1518

16-
[pep8]
17-
ignore = E501,E731,W503
18-
19-
[flake8]
20-
ignore = E501,E731,W503
19+
[gh-actions]
20+
python =
21+
pypy3: pypy3
22+
3.6: py36
23+
3.7: py37
24+
3.8: py38
25+
3.9: py39

0 commit comments

Comments
 (0)