Skip to content

Commit d264841

Browse files
committed
Feat: semver publishing (#9)
v1.0.0
1 parent 55d13ba commit d264841

File tree

12 files changed

+2157
-334
lines changed

12 files changed

+2157
-334
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/main.yaml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Install poetry
13+
run: pipx install poetry
14+
15+
- uses: actions/setup-python@v4
16+
with:
17+
python-version: 3.9
18+
cache: "poetry"
19+
20+
- run: poetry install
21+
22+
- name: run linters
23+
uses: wearerequired/lint-action@v1
24+
with:
25+
black: true
26+
black_args: pydantic_ssm_settings
27+
black_command_prefix: poetry run
28+
flake8: true
29+
flake8_args: pydantic_ssm_settings
30+
flake8_command_prefix: poetry run
31+
mypy: true
32+
mypy_args: pydantic_ssm_settings
33+
mypy_command_prefix: poetry run
34+
35+
test:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
# python-version: [3.6, 3.7, 3.8, 3.9]
41+
python-version: [3.8]
42+
env:
43+
PYTHON: ${{ matrix.python-version }}
44+
OS: ubuntu
45+
46+
steps:
47+
- uses: actions/checkout@v3
48+
49+
- name: Install poetry
50+
run: pipx install poetry
51+
52+
- uses: actions/setup-python@v4
53+
with:
54+
python-version: ${{ matrix.python-version }}
55+
cache: "poetry"
56+
57+
- run: poetry install
58+
59+
- run: poetry run pytest
60+
env:
61+
COVERAGE_FILE: coverage/.coverage.linux-py${{ matrix.python-version }}-cN-dN
62+
CONTEXT: linux-py${{ matrix.python-version }}-compiled-no-deps-no
63+
64+
- name: store coverage files
65+
uses: actions/upload-artifact@v2
66+
with:
67+
name: coverage
68+
path: coverage
69+
70+
release:
71+
name: Semantic Release
72+
runs-on: ubuntu-latest
73+
concurrency: push
74+
if: github.ref_name == 'main'
75+
needs: [test, lint]
76+
77+
steps:
78+
- uses: actions/checkout@v3
79+
with:
80+
# You must set fetch-depth to 0 when using actions/checkout@v2, since
81+
# Python Semantic Release needs access to the full history to
82+
# determine whether a release should be made.
83+
fetch-depth: 0
84+
85+
- name: Install poetry
86+
run: pipx install poetry
87+
88+
- uses: actions/setup-python@v4
89+
with:
90+
python-version: 3.9
91+
cache: "poetry"
92+
93+
- name: Python Semantic Release
94+
uses: relekang/[email protected]
95+
with:
96+
github_token: ${{ secrets.GITHUB_TOKEN }}
97+
repository_username: __token__
98+
repository_password: ${{ secrets.PYPI_API_TOKEN }}

Makefile

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)