Skip to content

Commit 28f6158

Browse files
authored
Merge pull request #1 from lilab-bcb/test
added ci
2 parents bc0b67c + 5bea580 commit 28f6158

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
python-version: [ 3.8, 3.9]
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
pip install --upgrade pip
24+
SETUPTOOLS_SCM_PRETEND_VERSION=0.0.1 pip install .[test]
25+
- name: Test with pytest
26+
run: |
27+
pytest
28+
env:
29+
CI: true

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
# - id: double-quote-string-fixer # for single quotes: uncomment and add black config “skip-string-normalization”
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- repo: https://github.com/PyCQA/docformatter
9+
rev: v1.5.0
10+
hooks:
11+
- id: docformatter
12+
args: ["--wrap-summaries=100", "--wrap-descriptions=100"]
13+
- repo: https://github.com/psf/black
14+
rev: 22.10.0
15+
hooks:
16+
- id: black
17+
- repo: https://github.com/pycqa/isort
18+
rev: 5.10.1
19+
hooks:
20+
- id: isort
21+
- repo: https://github.com/csachs/pyproject-flake8
22+
rev: v5.0.4a1.post1
23+
hooks:
24+
- id: pyproject-flake8
25+
- repo: https://github.com/pre-commit/mirrors-prettier
26+
rev: v3.0.0-alpha.4
27+
hooks:
28+
- id: prettier
29+
types_or: [css, javascript]

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Installation
1212
.. code:: ipython3
1313
1414
pip install backedarray
15-
15+
1616
Examples
1717
--------
1818

0 commit comments

Comments
 (0)