Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on:
push:
branches:
- master
pull_request:

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9']

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

- name: Install extra packages for tests
run: |
pip install wheel nose lxml

- name: Install package
run: |
python setup.py install

- name: Run tests
run: nosetests --exe
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def has_external_dependency(name):
'Intended Audience :: Science/Research',
'License :: OSI Approved :: '
'GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.9',
'Programming Language :: SQL',
'Topic :: Database :: Front-Ends',
],
Expand All @@ -46,7 +44,7 @@ def has_external_dependency(name):
try:
from setuptools import setup
config['install_requires'] = ['requests', 'six',
'sqlalchemy', 'alembic'],
'sqlalchemy==1.3.0', 'alembic==1.14.0'],
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class TestUniqueKeys(SaveAndSelect):
def test_empty(self):
scraperwiki.sql.save([], {u"foo\xde": 3}, table_name=u"Chico\xcc")
observed = scraperwiki.sql.execute(u'PRAGMA index_list(Chico\xcc)')
self.assertEqual(observed, {u'data': [], u'keys': []})
self.assertEqual(observed, {u'data': [], u'keys': ['seq', 'name', 'unique', 'origin', 'partial']})

def test_two(self):
scraperwiki.sql.save([u'foo\xdc', u'bar\xcd'], {u'foo\xdc': 3, u'bar\xcd': 9}, u'Harpo\xbb')
Expand Down
Loading