generated from spacetelescope/stsci-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.34 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
# 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
on:
push:
branches:
- main # GitHub now defaults to 'main' as the name of the primary branch. Change this as needed.
# tags: # run CI if specific tags are pushed
pull_request:
# branches: # only build on PRs against 'main' if you need to further limit when CI is run.
# - main
# schedule: # schedule a regular run if needed
# # Weekly Monday 9AM build
# - cron: "0 9 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
- linux: check-style
- linux: check-security
- linux: build-dist
test:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
with:
envs: |
- linux: test-oldestdeps
python-version: 3.9
- linux: test
python-version: 3.9
- linux: test
python-version: 3.10
- linux: test
python-version: 3.11
- macos: test
python-version: 3.11
- windows: test
python-version: 3.11
- linux: test-cov
coverage: codecov