-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (52 loc) · 1.81 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches:
- 'main'
tags:
- 'v*'
- '!*dev*'
- '!*pre*'
- '!*post*'
pull_request:
workflow_dispatch:
schedule:
# ┌───────── minute (0 - 59)
# │ ┌───────── hour (0 - 23)
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: '18 7 1 * *' # Every 1st of the month at 07:00 UTC
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
- linux: codestyle
- linux: build_docs
- linux: build_docs_devtowncrier
notify:
if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
needs: [tests]
runs-on: ubuntu-latest
steps:
- uses: Cadair/matrix-notify-action@main
with:
matrix_token: ${{ secrets.matrix_access_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
homeserver: ${{ secrets.matrix_homeserver }}
roomid: '!fZOLFXlQvSoKfLAVrd:openastronomy.org'
ignore_pattern: '.*Load.*'
summarise_success: false
workflow_description: "on sphinx-changelog"
publish:
needs: [tests]
if: github.event_name != 'pull_request'
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
upload_to_pypi: ${{ startsWith(github.event.ref, 'refs/tags/v') && !endsWith(github.event.ref, '.dev') }}
secrets:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}