Skip to content

Commit ed10d5c

Browse files
authored
Merge pull request #2 from alteryx/dev
Merging to include testing workflow and documentation changes
2 parents 7f2b05a + 14f0d6a commit ed10d5c

Some content is hidden

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

48 files changed

+353
-146
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Blank Issue
3+
about: Create a blank issue
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Bug Report
3+
about: Create a bug report to help us improve DataChecks
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
[A clear and concise description of what the bug is.]
11+
12+
#### Code Sample, a copy-pastable example to reproduce your bug.
13+
14+
```python
15+
# Your code here
16+
17+
```

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: General Technical Question
4+
about: "If you have a question like *How can I check for ID Columns?* you can ask on StackOverflow using the #checkmate tag."
5+
url: https://stackoverflow.com/questions/tagged/checkmate
6+
- name: Real-time chat
7+
url: https://join.slack.com/t/alteryx-oss/shared_invite/zt-182tyvuxv-NzIn6eiCEf8TBziuKp0bNA
8+
about: "If you want to meet others in the community and chat about all things Alteryx OSS then check out our Slack."
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Documentation Improvement
3+
about: Suggest an idea for improving the documentation
4+
title: ''
5+
labels: 'documentation'
6+
assignees: ''
7+
8+
---
9+
10+
[a description of what documentation you believe needs to be fixed/improved]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'new feature'
6+
assignees: ''
7+
8+
---
9+
10+
- As a [user/developer], I wish I could use CheckMate to ...
11+
12+
#### Code Example
13+
14+
```python
15+
# Your code here, if applicable
16+
17+
```

.github/auto_assign.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Set to author to set pr creator as assignee
2+
addAssignees: author

.github/codecov.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
coverage:
2+
round: up
3+
precision: 1
4+
status:
5+
project:
6+
default:
7+
threshold: 1%
8+
9+
codecov:
10+
notify:
11+
wait_for_ci: true
12+
13+
ignore:

.github/workflows/lint_tests.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
lint_check:
10+
name: Python ${{ matrix.python_version }} lint test
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python_version: ["3.9"]
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.event.pull_request.head.ref }}
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
21+
- name: Set up python ${{ matrix.python_version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python_version }}
25+
cache: 'pip'
26+
cache-dependency-path: 'pyproject.toml'
27+
- uses: actions/cache@v3
28+
id: cache
29+
with:
30+
path: ${{ env.pythonLocation }}
31+
key: ${{ matrix.python_version }}-lint-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}-v01
32+
- name: Install checkmate with dev requirements (not using cache)
33+
if: steps.cache.outputs.cache-hit != 'true'
34+
run: |
35+
python -m pip install -e .[dev]
36+
- name: Install checkmate with no requirements (using cache)
37+
if: steps.cache.outputs.cache-hit == 'true'
38+
run: |
39+
python -m pip install -e .[dev] --no-deps
40+
- name: Run lint test
41+
run: make lint
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Pull Request Check
2+
on:
3+
pull_request:
4+
types: [opened, edited, reopened, synchronize]
5+
jobs:
6+
pull_request_check:
7+
name: pull request check
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: nearform/[email protected]
11+
id: check-linked-issues
12+
with:
13+
exclude-branches: "release_v**, backport_v**, main, latest-dep-update-**, min-dep-update-**, dependabot/**"
14+
github-token: ${{ secrets.REPO_SCOPED_TOKEN }}

.github/workflows/pytest.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Pytest Tests
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
pytest_check:
10+
name: Python ${{ matrix.python_version }} pytest test
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python_version: ["3.9"]
15+
steps:
16+
- name: Set up Python ${{ matrix.python_version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python_version }}
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
with:
23+
ref: ${{ github.event.pull_request.head.ref }}
24+
repository: ${{ github.event.pull_request.head.repo.full_name }}
25+
fetch-depth: 2
26+
- name: Installing Dependencies
27+
run: |
28+
pip install virtualenv
29+
virtualenv test_python -q
30+
source test_python/bin/activate
31+
make installdeps
32+
make installdeps-test
33+
pip freeze
34+
deactivate
35+
- name: Run Pytest
36+
run: |
37+
source test_python/bin/activate
38+
make test

0 commit comments

Comments
 (0)