Skip to content

Commit a585b42

Browse files
authored
Merge pull request #58 from JetBrains-Research/dev
CFPQ_Data release 1.0.0
2 parents 3506f96 + f50a619 commit a585b42

208 files changed

Lines changed: 4611 additions & 2848 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/coverage.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Code coverage
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
report:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [ 3.8 ]
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
19+
- name: Install packages
20+
run: |
21+
python -m pip install --upgrade pip wheel setuptools
22+
python -m pip install -r requirements.txt
23+
python -m pip install .
24+
python -m pip list
25+
26+
- name: Test CFPQ_Data with coverage
27+
run: |
28+
pytest --cov=cfpq_data --doctest-modules -vv -s cfpq_data tests
29+
codecov

.github/workflows/deploy_docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
report:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [ 3.8 ]
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install packages
22+
run: |
23+
python -m pip install --upgrade pip wheel setuptools
24+
python -m pip install -r requirements.txt
25+
python -m pip install -r requirements/docs.txt
26+
python -m pip install .
27+
python -m pip list
28+
29+
- name: Build
30+
run: make -C docs/ html
31+
32+
- name: Deploy
33+
uses: JamesIves/[email protected]
34+
with:
35+
branch: gh-pages # The branch the action should deploy to.
36+
folder: docs/_build/html # The folder the action should deploy.

.github/workflows/lint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Code style check
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
style:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ ubuntu-latest ]
11+
python-version: [ 3.8 ]
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Install packages
21+
run: |
22+
python -m pip install --upgrade pip wheel setuptools
23+
python -m pip install -r requirements/developer.txt
24+
python -m pip install .
25+
python -m pip list
26+
27+
- name: Install pre-commit
28+
run: |
29+
pre-commit install
30+
31+
- name: Run black
32+
run: |
33+
pre-commit run --all-files --color always --verbose --show-diff-on-failure

.github/workflows/tests.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Continuous integration
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
tests:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [
11+
ubuntu-16.04,
12+
ubuntu-18.04,
13+
ubuntu-20.04,
14+
ubuntu-latest,
15+
macos-10.15,
16+
macos-latest,
17+
windows-2016,
18+
windows-2019,
19+
windows-latest,
20+
]
21+
python-version: [ 3.7, 3.8, 3.9 ]
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install packages
31+
run: |
32+
python -m pip install --upgrade pip wheel setuptools
33+
python -m pip install -r requirements.txt
34+
python -m pip install .
35+
python -m pip list
36+
37+
- name: Test CFPQ_Data
38+
run: |
39+
pytest --doctest-modules -vv -s cfpq_data tests
40+
41+
# Only supported on linux platform
42+
docker:
43+
runs-on: ${{ matrix.os }}
44+
strategy:
45+
matrix:
46+
os: [
47+
ubuntu-16.04,
48+
ubuntu-18.04,
49+
ubuntu-20.04,
50+
ubuntu-latest,
51+
]
52+
steps:
53+
- uses: actions/checkout@v2
54+
55+
- name: Build Docker image
56+
id: docker_build
57+
uses: docker/build-push-action@v2
58+
with:
59+
tags: cfpq_data:latest
60+
61+
- name: Run tests inside Docker
62+
uses: addnab/docker-run-action@v3
63+
with:
64+
image: cfpq_data:latest
65+
run: python3 -m pytest --doctest-modules -vv -s cfpq_data tests

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# IDEA
22
.idea
33

4+
# Data
5+
cfpq_data/data
6+
47
# Byte-compiled / optimized / DLL files
58
__pycache__/
69
*.py[cod]
@@ -50,6 +53,10 @@ coverage.xml
5053
.hypothesis/
5154
.pytest_cache/
5255

56+
# Doctest files
57+
test.txt
58+
test.xml
59+
5360
# Translations
5461
*.mo
5562
*.pot

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.4.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: requirements-txt-fixer
9+
- repo: https://github.com/psf/black
10+
rev: 20.8b1
11+
hooks:
12+
- id: black

0 commit comments

Comments
 (0)