Skip to content

Commit 90218dc

Browse files
chore/Enabling release-drafter (#17)
* Adding release-drafter workflow * Adding CODEOWNERS * Ensure we have the dev group installed for running tests
1 parent dbd036d commit 90218dc

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @replit/deployments-reviewers

.github/workflows/release-drafter.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
# pull_request_target event is required for autolabeler to support PRs from forks
13+
pull_request_target:
14+
types: [opened, reopened, synchronize]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
update_release_draft:
21+
permissions:
22+
# write permission is required to create a github release
23+
contents: write
24+
# write permission is required for autolabeler
25+
# otherwise, read permission is required at least
26+
pull-requests: write
27+
runs-on: ubuntu-latest
28+
steps:
29+
# Drafts your next Release notes as Pull Requests are merged into "master"
30+
- uses: release-drafter/release-drafter@v5
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ docs:
66
install:
77
@poetry install
88

9+
.PHONY: install-dev
10+
install-dev:
11+
@poetry install --with=dev
12+
913
.PHONY: lint
1014
lint:
1115
@poetry run ruff check src tests
@@ -15,15 +19,15 @@ lint-fix:
1519
@poetry run ruff check src tests --fix
1620

1721
.PHONY: test-integration
18-
test-integration:
22+
test-integration: install-dev
1923
@poetry run pytest --cov-report term-missing --cov=./src ./tests/integration
2024

21-
.PHONY: test-integration-multi-language
25+
.PHONY: install-dev test-integration-multi-language
2226
test-integration-multi-language:
2327
@poetry run tox
2428

2529
.PHONY: test-unit
26-
test-unit:
30+
test-unit: install-dev
2731
@poetry run pytest --cov-report term-missing --cov=./src ./tests/unit
2832

2933
.PHONY: prerelease
@@ -33,4 +37,4 @@ prerelease: test-unit test-integration-multi-language
3337

3438
.PHONY: release
3539
release: prerelease
36-
@poetry run twine upload dist/*
40+
@poetry run twine upload dist/*

0 commit comments

Comments
 (0)