Skip to content

Commit a51945e

Browse files
committed
chore: clean up CI workflows
1 parent 2bab8ad commit a51945e

File tree

4 files changed

+74
-66
lines changed

4 files changed

+74
-66
lines changed

Diff for: .github/workflows/python.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Powertools Python
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- master
8+
paths:
9+
- "python/**"
10+
push:
11+
branches:
12+
- develop
13+
- master
14+
paths:
15+
- "python/**"
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: ./python/
23+
strategy:
24+
max-parallel: 4
25+
matrix:
26+
python-version: [3.6, 3.7, 3.8]
27+
steps:
28+
- uses: actions/checkout@v1
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v1
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: make dev
35+
- name: Formatting and Linting
36+
run: make lint
37+
- name: Test with pytest
38+
run: make test

Diff for: .github/workflows/python_docs.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Powertools Python Docs
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- "python/**"
9+
push:
10+
branches:
11+
- master
12+
paths:
13+
- "python/**"
14+
15+
jobs:
16+
docs:
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: ./python/
21+
steps:
22+
- uses: actions/checkout@v1
23+
- name: Set up Python
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: "3.8"
27+
- name: Install dependencies
28+
run: make dev
29+
- name: build docs
30+
run: make docs
31+
- name: deploy docs
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: python/docs/aws_lambda_powertools/

Diff for: .github/workflows/pythonpackage.yml

-65
This file was deleted.

Diff for: python/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ target:
33
@$(MAKE) pr
44

55
dev:
6-
pip install --upgrade poetry
6+
pip install --upgrade pip poetry
77
poetry install
88

99
format:

0 commit comments

Comments
 (0)