-
Notifications
You must be signed in to change notification settings - Fork 30
80 lines (75 loc) · 1.89 KB
/
ci.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CI
on:
workflow_dispatch:
schedule:
# Run every Monday at 6am UTC
- cron: '0 6 * * 1'
push:
branches:
- main
- stable
- '*.x'
tags:
- '*'
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.0
core:
needs: [pre-commit]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
submodules: false
envs: |
- linux: py39
- linux: py310
- linux: py311
- linux: py312
test:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
submodules: false
# Any env name which does not start with `pyXY` will use this Python version.
default_python: '3.9'
envs: |
- macos: py39
- windows: py39
package:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
upload_to_pypi: false
upload_to_anaconda: false
asdf-dev:
needs: [pre-commit]
name: Run asdf-development tests
runs-on: ubuntu-latest
steps:
- name: Checkout asdf-standard
uses: actions/checkout@v4
with:
fetch-depth: 0
path: asdf-standard
- name: Checkout asdf-dev
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: asdf-format/asdf
path: asdf
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install asdf-standard
run: cd asdf-standard && pip install .
- name: Install asdf
run: cd asdf && pip install -e .[tests]
- name: Pip Freeze
run: pip freeze
- name: Run asdf-development tests
run: cd asdf && pytest