Skip to content

Commit

Permalink
Merge pull request #144 from Cadair/changelog_template
Browse files Browse the repository at this point in the history
Template GH releases and use openastronomy templates
  • Loading branch information
Cadair authored Apr 21, 2022
2 parents 3b44614 + 8c52c3c commit 503e6f9
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 176 deletions.
18 changes: 18 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .github/release.yml

changelog:
exclude:
labels:
- ignore-for-release-notes
authors:
- pre-commit-ci[bot]
categories:
- title: Fixes
labels:
- bug
- title: Exciting New Features 🎉
labels:
- enhancement
- title: Other Changes
labels:
- "*"
70 changes: 0 additions & 70 deletions .github/workflows/python-package.yml

This file was deleted.

106 changes: 0 additions & 106 deletions .github/workflows/release.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches:
- master
tags:
- 'v*'
- '!*dev*'
- '!*pre*'
- '!*post*'
pull_request:
# Allow manual runs through the web UI
workflow_dispatch:

jobs:
test:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
# Test the oldest and newest configuration on Mac and Windows
- macos: py36-test-mpl20
- macos: py310-test-mpl35
- windows: py36-test-mpl20
- windows: py310-test-mpl35
# Test all configurations on Linux
- linux: py36-test-mpl20
- linux: py36-test-mpl21
- linux: py36-test-mpl22
- linux: py37-test-mpl30
- linux: py37-test-mpl31
- linux: py37-test-mpl32
- linux: py38-test-mpl33
- linux: py39-test-mpl34
- linux: py310-test-mpl35
coverage: 'codecov'

publish:
if: github.event_name != 'pull_request'
needs: [test]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
test_command: pytest $GITHUB_WORKSPACE/tests; pytest --mpl $GITHUB_WORKSPACE/tests
secrets:
pypi_token: ${{ secrets.pypi_password }}
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,14 @@ repos:
- id: check-ast
- id: check-case-conflict
- id: trailing-whitespace
exclude: CHANGES.md
- id: check-yaml
- id: debug-statements
- id: check-added-large-files
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-toml


ci:
autofix_prs: false

0 comments on commit 503e6f9

Please sign in to comment.