Skip to content

Commit 503e6f9

Browse files
authored
Merge pull request #144 from Cadair/changelog_template
Template GH releases and use openastronomy templates
2 parents 3b44614 + 8c52c3c commit 503e6f9

File tree

5 files changed

+66
-176
lines changed

5 files changed

+66
-176
lines changed

.github/release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release-notes
7+
authors:
8+
- pre-commit-ci[bot]
9+
categories:
10+
- title: Fixes
11+
labels:
12+
- bug
13+
- title: Exciting New Features 🎉
14+
labels:
15+
- enhancement
16+
- title: Other Changes
17+
labels:
18+
- "*"

.github/workflows/python-package.yml

-70
This file was deleted.

.github/workflows/release.yml

-106
This file was deleted.
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- 'v*'
9+
- '!*dev*'
10+
- '!*pre*'
11+
- '!*post*'
12+
pull_request:
13+
# Allow manual runs through the web UI
14+
workflow_dispatch:
15+
16+
jobs:
17+
test:
18+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
19+
with:
20+
envs: |
21+
# Test the oldest and newest configuration on Mac and Windows
22+
- macos: py36-test-mpl20
23+
- macos: py310-test-mpl35
24+
- windows: py36-test-mpl20
25+
- windows: py310-test-mpl35
26+
# Test all configurations on Linux
27+
- linux: py36-test-mpl20
28+
- linux: py36-test-mpl21
29+
- linux: py36-test-mpl22
30+
- linux: py37-test-mpl30
31+
- linux: py37-test-mpl31
32+
- linux: py37-test-mpl32
33+
- linux: py38-test-mpl33
34+
- linux: py39-test-mpl34
35+
- linux: py310-test-mpl35
36+
coverage: 'codecov'
37+
38+
publish:
39+
if: github.event_name != 'pull_request'
40+
needs: [test]
41+
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
42+
with:
43+
test_command: pytest $GITHUB_WORKSPACE/tests; pytest --mpl $GITHUB_WORKSPACE/tests
44+
secrets:
45+
pypi_token: ${{ secrets.pypi_password }}

.pre-commit-config.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,14 @@ repos:
8080
- id: check-ast
8181
- id: check-case-conflict
8282
- id: trailing-whitespace
83+
exclude: CHANGES.md
8384
- id: check-yaml
8485
- id: debug-statements
8586
- id: check-added-large-files
8687
- id: end-of-file-fixer
8788
- id: mixed-line-ending
89+
- id: check-toml
90+
8891

8992
ci:
9093
autofix_prs: false

0 commit comments

Comments
 (0)