Skip to content

Commit

Permalink
build config: switch from tox to github actions
Browse files Browse the repository at this point in the history
replace bsddb with berkeleydb

bsddb3 is deprecated

install libdb-dev in github actions

[requirements-test] proper requirements for tests

tests directory, add __init__

library does not support Python 3.6 now (due to bsddb)

This will be fixed on next PR. Here we only fix builds

Revert "replace bsddb with berkeleydb"

This reverts commit 478dd33.

[github workflows] add caching of requirements
  • Loading branch information
pawelmhm committed Apr 23, 2021
1 parent aea3c34 commit 43eb4a2
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 51 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

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

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5]

steps:
- uses: actions/checkout@v2
- name: libddb
run: |
sudo apt-get install libdb-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os}}-pip-${{ hashFiles('tests/requirements-test.txt') }}
restore-keys: |
${{ runner.os}}-pip-
${{ runner.os}}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements-test.txt
- name: Test with pytest
run: |
pytest
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

Empty file added tests/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions tests/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r ../requirements.txt
mock
pytest
19 changes: 0 additions & 19 deletions tox.ini

This file was deleted.

0 comments on commit 43eb4a2

Please sign in to comment.