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
build config: switch from tox to github actions
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
commit 43eb4a276fc261003c6a43f3a9933e6546139c0b
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.