-
Notifications
You must be signed in to change notification settings - Fork 153
70 lines (61 loc) · 1.63 KB
/
ci_workflows.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
name: CI Tests
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
initial_checks:
# Mandatory checks before CI tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: false
envs: |
# Code style
- linux: codestyle
tests:
needs: initial_checks
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
coverage: codecov
envs: |
# Linux builds
- linux: py38-test-lts-all
- linux: py39-test
- linux: py310-test-all
- linux: py311-test
- linux: py311-test-all
# Documentation build
- linux: py38-docs
coverage: false
- macos: py311-docs
coverage: false
# Test a few configurations on macOS
- macos: py38-test-all
- macos: py39-test
- macos: py310-test-all
- macos: py311-test
# Test some configurations on Windows
- windows: py38-test
- windows: py310-test
# Test against latest developer versions of some packages
- linux: py310-test-dev-all
libraries:
apt:
- software-properties-common
- geos
- linux: py311-test-dev
libraries:
apt:
- software-properties-common
- geos
publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
with:
test_extras: 'test'
test_command: pytest --pyargs glue
secrets:
pypi_token: ${{ secrets.pypi_token }}