-
-
Notifications
You must be signed in to change notification settings - Fork 111
69 lines (58 loc) · 2.01 KB
/
ci_tests.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
# GitHub Actions workflow for testing and continuous integration.
#
# This file performs testing using tox and tox.ini to define and configure the test environments.
name: CI Tests
on:
schedule:
# run every Wednesday at 6am UTC
- cron: '0 6 * * 3'
push:
branches:
- main
tags:
- '*'
pull_request:
branches: # only build on PRs against 'main' if you need to further limit when CI is run.
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Github Actions supports ubuntu, windows, and macos virtual environments:
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
ci_tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
submodules: false
coverage: ''
envs: |
- name: Code style checks
linux: codestyle
- name: Link checks
linux: linkcheck
- name: OS X - Python 3.13 with minimal dependencies
macos: py313-test
runs-on: macos-latest
- name: Windows - Python 3.11 with all optional dependencies
windows: py311-test-alldeps
toxargs: -v
- name: Python 3.12 with remote data, all dependencies, and coverage
linux: py312-test-alldeps-cov
toxargs: -v
posargs: --remote-data=any
coverage: codecov
- name: Python 3.11 with oldest version of key dependencies
linux: py311-test-oldestdeps
allowed_failures:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@924441154cf3053034c6513d5e06c69d262fb9a6 # v1.13.0
with:
submodules: false
coverage: ''
envs: |
- name: (Allowed Failure) Python 3.13 with latest dev versions of key dependencies
linux: py313-test-devdeps
posargs: --verbose