Skip to content

Commit e2ddf62

Browse files
committed
Prevent workflow double trigger, Add PEP 561 compliance (#1348)
* update workflow files * typo fix * Update pytest * remove bad semi-colon * Fix test runner command * Remove explicit steps required from older version * Explicitly add Conda python to path for subprocess command in test * Fix the mypy compliance check * Added PEP 561 compliance * Add py.typed to MANIFEST for dist * Remove py.typed from setup.py
1 parent 14dd5ab commit e2ddf62

File tree

5 files changed

+41
-16
lines changed

5 files changed

+41
-16
lines changed

.github/workflows/black_checker.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
name: black-format-check
22

3-
on: [push, pull_request]
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
418

519
env:
620
#If STRICT is set to true, it will fail on black check fail

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
build-and-deploy:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
24+
25+
- name: Checkout
26+
uses: actions/checkout@v2
2527
with:
2628
submodules: recursive
2729

.github/workflows/isort_checker.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
name: isort-check
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
# Manually triggerable in github
5+
workflow_dispatch:
6+
7+
# When a push occurs on either of these branches
8+
push:
9+
branches:
10+
- master
11+
- development
12+
13+
# When a push occurs on a PR that targets these branches
14+
pull_request:
15+
branches:
16+
- master
17+
- development
418

519
env:
620
#If STRICT is set to true, it will fail on isort check fail
721
STRICT: false
822

923
jobs:
1024

11-
black-format-check:
25+
isort-format-check:
1226
runs-on: ubuntu-latest
1327
steps:
1428

.github/workflows/pytest.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ on:
1212

1313
# When a push occurs on a PR that targets these branches
1414
pull_request:
15-
workflow_dispatch:
15+
branches:
16+
- master
17+
- development
18+
1619
schedule:
1720
# Every day at 7AM UTC
1821
- cron: '0 07 * * *'
@@ -40,16 +43,6 @@ jobs:
4043
runs-on: ${{ matrix.os }}
4144

4245
strategy:
43-
matrix:
44-
python-version: ['3.7', '3.8', '3.9', '3.10']
45-
use-conda: [true, false]
46-
use-dist: [false]
47-
include:
48-
- python-version: '3.8'
49-
code-cov: true
50-
- python-version: '3.7'
51-
use-conda: false
52-
use-dist: true
5346
fail-fast: false
5447
matrix:
5548
os: [windows-latest, macos-latest, ubuntu-latest]
@@ -80,7 +73,8 @@ jobs:
8073

8174
steps:
8275

83-
- uses: actions/checkout@v2
76+
- name: Checkout
77+
uses: actions/checkout@v2
8478
with:
8579
submodules: recursive
8680

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include LICENSE.txt
22
include requirements.txt
33
include autosklearn/util/logging.yaml
44
include autosklearn/requirements.txt
5+
include autosklearn/py.typed
56

67
# Meta-data
78
recursive-include autosklearn/metalearning/files *.arff *.csv *.txt

0 commit comments

Comments
 (0)