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
60 changes: 60 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: ci

on:
push:
branches: [master]
pull_request:

jobs:

tests:
runs-on: ubuntu-latest
timeout-minutes: 30
name: Run tests
steps:
- uses: actions/checkout@v4

- name: Install Longbow and its testing dependencies
shell: bash
run: pip install -e .[testing]

- name: Run test suite
shell: bash
run: pytest --cov longbow --cov-report term-missing --cov-append .

- name: Report Coverage
uses: coverallsapp/github-action@v2

docs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -e .[docs]
- name: Build docs
run: cd docs && make

#pre-commit:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python 3.11
# uses: actions/setup-python@v5
# with:
# python-version: 3.11
# - name: Install python dependencies
# run: |
# pip install --upgrade pip
# pip install -e .[pre-commit,docs,testing]
# - name: Run pre-commit
# run: |
# pre-commit install
# pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.project
/.pydevproject
/.settings/
*__pycache__*
17 changes: 17 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.11"

python:
install:
- method: pip
path: .
extra_requirements:
- docs

sphinx:
# Path to your Sphinx configuration file.
configuration: docs/conf.py
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

Loading