Skip to content

Commit 6b013da

Browse files
authored
Merge pull request #1 from salesforce/chore/set-up-ci
Set up Dependabot, PR checks, and a CHANGELOG
2 parents c9fed4f + ae28814 commit 6b013da

File tree

4 files changed

+101
-0
lines changed

4 files changed

+101
-0
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
# Raise pull requests for dependency updates against `develop`
13+
target-branch: "main"
14+
allow:
15+
- dependency-type: "development"
16+
# Include a list of updates with a notable prefix
17+
commit-message:
18+
prefix: "chore"
19+
prefix-development: "chore"
20+
include: "scope"
21+
groups:
22+
# Note: The group order matters, since updates are assigned to the first matching group.
23+
dev-dependencies:
24+
dependency-type: "development"
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# Publishes the release to PyPI and docs to github pages
3+
#
4+
5+
name: "publish release"
6+
7+
on:
8+
release:
9+
types: [created]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.9'
19+
20+
- name: install build dependencies
21+
run: python -m pip install --upgrade build
22+
23+
- name: build
24+
run: python -m build
25+
26+
- uses: actions/upload-artifact@v3
27+
with:
28+
path: dist
29+
30+
publish-pypi:
31+
runs-on: ubuntu-latest
32+
needs: [build]
33+
steps:
34+
- uses: actions/download-artifact@v3
35+
with:
36+
name: artifact
37+
path: dist
38+
39+
- uses: pypa/gh-action-pypi-publish@release/v1
40+
with:
41+
user: __token__
42+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: unit-tests-and-static-analysis
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: set up Python ${{ matrix.python-version }} Django ${{ matrix.django }}
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: install dependencies
20+
run: |
21+
make install
22+
- name: run tests
23+
run: |
24+
make test-all

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
# [Unreleased]
8+
- [PR 1](https://github.com/salesforce/django-request-queue-timeout/pull/1) Set up Dependabot, PR checks, and a CHANGELOG
9+
10+
## [1.0.0] - 2023-11-15
11+
- Initial release

0 commit comments

Comments
 (0)