Skip to content

Commit

Permalink
Replace Travis + Appveyor with GitHub Actions (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Nov 12, 2020
1 parent d1bbc08 commit 58de834
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 199 deletions.
38 changes: 0 additions & 38 deletions .ci/appveyor.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .ci/deploy.linux.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .ci/deploy.osx.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .ci/deps.linux.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .ci/deps.osx.sh

This file was deleted.

47 changes: 0 additions & 47 deletions .ci/run_with_env.cmd

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, windows-2019, macos-10.15]
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
exclude:
- os: windows-2019
python-version: pypy3
# TODO: Remove this; see:
# https://github.com/actions/setup-python/issues/151
# https://github.com/tox-dev/tox/issues/1704
# https://foss.heptapod.net/pypy/pypy/-/issues/3331
env:
BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
BABEL_CLDR_QUIET: "1"
steps:
- uses: actions/checkout@v2
- 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 setuptools wheel
python -m pip install tox tox-gh-actions==2.1.0
- name: Run test via Tox
run: tox --skip-missing-interpreters
- uses: codecov/codecov-action@v1
74 changes: 0 additions & 74 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,16 @@ def run(self):
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
python_requires='>=3.6',
packages=['babel', 'babel.messages', 'babel.localtime'],
include_package_data=True,
install_requires=[
Expand Down
29 changes: 17 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
[tox]
envlist = py27, pypy, py34, py35, py36, py37, pypy3, py27-cdecimal
envlist =
py{36,37,38,39}
pypy3

[testenv]
deps =
pytest==4.3.1;python_version<"3.5"
pytest==6.1.2;python_version>="3.5"
pytest
pytest-cov
cdecimal: m3-cdecimal
freezegun==0.3.12
backports.zoneinfo;python_version>"3.6" and python_version<"3.9"
backports.zoneinfo;python_version<"3.9"
tzdata;sys_platform == 'win32'
whitelist_externals = make
commands = make clean-cldr test
passenv = PYTHON_TEST_FLAGS
commands = make clean-cldr test-cov
passenv =
BABEL_*
PYTHON_*

[pep8]
ignore = E501,E731,W503

[flake8]
ignore = E501,E731,W503
[gh-actions]
python =
pypy3: pypy3
3.6: py36
3.7: py37
3.8: py38
3.9: py39

0 comments on commit 58de834

Please sign in to comment.