diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 0000000..dbc52cb --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,30 @@ +name: Python package + +on: + push: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [2.7, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install requirements + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Test with pytest + run: | + pip install pytest + pytest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3d056ea..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python -python: - - "2.7" - - "3.7" - - "3.8" - - "3.9" -# command to install dependencies -install: - - pip install . -# command to run tests -script: pytest -# only notify when status changes from success to failure -notifications: - email: - recipients: - - code@ramiro.org - on_failure: change diff --git a/README.rst b/README.rst index dee56f5..4995910 100644 --- a/README.rst +++ b/README.rst @@ -3,8 +3,6 @@ Geonames Cache .. image:: https://img.shields.io/pypi/v/geonamescache.svg :target: https://pypi.python.org/pypi/geonamescache -.. image:: https://travis-ci.org/yaph/geonamescache.png?branch=master - :target: https://travis-ci.org/yaph/geonamescache A Python library that provides functions to retrieve names, ISO and FIPS codes of continents, countries as well as US states and counties as Python dictionaries. The country and city datasets also include population and geographic data.