Skip to content

Commit c501c9a

Browse files
Merge pull request #1 from antoinedemathelin/new_branch
Updating workflow
2 parents 5c9c3b8 + eb377ca commit c501c9a

File tree

8 files changed

+223
-126
lines changed

8 files changed

+223
-126
lines changed

.github/labeler.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Config file for the labeler Github Action
2+
# https://hub.docker.com/r/jimschubert/labeler-action
3+
# labeler "full" schema
4+
5+
# enable labeler on issues, prs, or both.
6+
enable:
7+
issues: true
8+
prs: true
9+
10+
# comments object allows you to specify a different message for issues and prs
11+
12+
# comments:
13+
# issues: |
14+
# Thanks for opening this issue!
15+
# I have applied any labels matching special text in your title and description.
16+
17+
# Please review the labels and make any necessary changes.
18+
# prs: |
19+
# Thanks for the contribution!
20+
# I have applied any labels matching special text in your title and description.
21+
22+
# Please review the labels and make any necessary changes.
23+
24+
# Labels is an object where:
25+
# - keys are labels
26+
# - values are objects of { include: [ pattern ], exclude: [ pattern ] }
27+
# - pattern must be a valid regex, and is applied globally to
28+
# title + description of issues and/or prs (see enabled config above)
29+
# - 'include' patterns will associate a label if any of these patterns match
30+
# - 'exclude' patterns will ignore this label if any of these patterns match
31+
labels:
32+
'Type: Fix':
33+
include:
34+
- '^(bug|fix)(\(.*\))?:(.*)'
35+
exclude: []
36+
'Type: Feature':
37+
include:
38+
- '^feat(\(.*\))?:(.*)'
39+
exclude: []
40+
'Type: Build':
41+
include:
42+
- '^build(\(.*\))?:(.*)'
43+
exclude: []
44+
'Type: Documentation':
45+
include:
46+
- '^docs(\(.*\))?:(.*)'
47+
exclude: []
48+
'Type: Refactoring':
49+
include:
50+
- '^(refactor|style)(\(.*\))?:(.*)'
51+
exclude: []
52+
'Type: Testing':
53+
include:
54+
- '^test(\(.*\))?:(.*)'
55+
exclude: []
56+
'Type: Maintenance':
57+
include:
58+
- '^(chore|mnt)(\(.*\))?:(.*)'
59+
exclude: []
60+
'Type: CI':
61+
include:
62+
- '^ci(\(.*\))?:(.*)'
63+
exclude: []
64+
'Type: Performance':
65+
include:
66+
- '^perf(\(.*\))?:(.*)'
67+
exclude: []
68+
'Type: Revert':
69+
include:
70+
- '^revert(\(.*\))?:(.*)'
71+
exclude: []
72+
'skip-changelog':
73+
include:
74+
- '^(chore: pre-commit autoupdate)'
75+
exclude: []

.github/release-drafter.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'Type: Feature'
7+
- 'Type: Performance'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'Type: Fix'
11+
- title: '📚 Documentation'
12+
label: 'Type: Documentation'
13+
- title: '🧰 Maintenance'
14+
label:
15+
- 'Type: Maintenance'
16+
- 'Type: Build'
17+
- 'Type: Refactoring'
18+
- 'Type: CI'
19+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
21+
version-resolver:
22+
major:
23+
labels:
24+
- 'major'
25+
minor:
26+
labels:
27+
- 'minor'
28+
patch:
29+
labels:
30+
- 'patch'
31+
default: patch
32+
exclude-labels:
33+
- 'skip-changelog'
34+
template: |
35+
## Changes
36+
37+
$CHANGES

.github/semantic.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Always validate the PR title, and ignore the commits
2+
titleOnly: true
3+
4+
# By default types specified in commitizen/conventional-commit-types is used.
5+
# See: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
6+
# You can override the valid types
7+
types:
8+
- feat
9+
- fix
10+
- docs
11+
- style
12+
- refactor
13+
- perf
14+
- test
15+
- build
16+
- ci
17+
- chore
18+
- revert

.github/workflows/pr-labeler.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Label PRs and issues
2+
on:
3+
issues:
4+
types: [opened, edited, milestoned]
5+
pull_request_target:
6+
types: [opened]
7+
8+
jobs:
9+
10+
labeler:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check Labels
15+
id: labeler
16+
uses: jimschubert/labeler-action@v2
17+
with:
18+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/python-app.yml

Lines changed: 0 additions & 125 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will install Python dependencies, run tests, generate coverage
2+
# report and upload it to codecov.
3+
# For more information, see:
4+
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
5+
6+
name: Run tests with coverage
7+
8+
on:
9+
push:
10+
branches: [ master ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
jobs:
15+
coverage:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.8'
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pytest pytest-cov codecov
27+
pip install -r requirements.txt
28+
- name: Install adapt
29+
run: |
30+
pip install -e .
31+
- name: Test with pytest
32+
run: |
33+
pytest --cov=adapt
34+
- name: Upload codecov
35+
run: |
36+
codecov

.github/workflows/run-test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Run tests
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
strategy:
15+
matrix:
16+
python-version: [3.6, 3.7, 3.8, 3.9]
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
exclude:
19+
- os: windows-latest
20+
python-version: 3.9
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install pytest pytest-cov codecov
32+
pip install -r requirements.txt
33+
- name: Install adapt
34+
run: |
35+
pip install -e .
36+
- name: Test with pytest
37+
run: |
38+
python -m pytest --no-cov

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Find the details of all implemented methods as well as illustrative examples her
1515

1616
## Installation
1717

18-
This package is available on [Pypi](https://pypi.org/project/adapt) and can be installed with the following command line:
18+
This package is available on [Pypi](https://pypi.org/project/adapt) and can be installed with the following command line:
1919

2020
```
2121
pip install adapt

0 commit comments

Comments
 (0)