Skip to content

Commit

Permalink
Replace travis with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Nov 2, 2021
1 parent f9b0845 commit c23e746
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit c23e746

Please sign in to comment.