-
Notifications
You must be signed in to change notification settings - Fork 28
94 lines (84 loc) · 2.62 KB
/
ci_cron_monthly.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Monthly cron
on:
schedule:
# run every 19th of the month at 4am UTC
- cron: '0 4 19 * *'
pull_request:
# We also want this workflow triggered if the 'Extra CI' label is added
# or present when PR is updated
types:
- synchronize
- labeled
jobs:
test_more_architectures:
# The following architectures are emulated and are therefore slow, so
# we include them just in the monthly cron. These also serve as a test
# of using system libraries and using pytest directly.
name: Test on ${{ matrix.arch }}
# Don't run on forks of the repository.
if: (github.repository == 'mhvk/baseband' && (github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'Extra CI')))
runs-on: ubuntu-latest
env:
apt_packages: git python3-astropy python3-pip
strategy:
fail-fast: false
matrix:
include:
- arch: s390x
- arch: aarch64
- arch: ppc64le
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: uraimo/run-on-arch-action@v2
name: Run tests
id: build
with:
arch: ${{ matrix.arch }}
distro: ubuntu_latest
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -y ${{ env.apt_packages }}
run: |
python3 setup.py egg_info
python3 -m pytest
test_with_apt:
name: Test using apt
runs-on: ubuntu-latest
if: (github.repository == 'mhvk/baseband' && (github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'Extra CI')))
env:
apt_packages: git python3-astropy python3-pip
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install system dependencies
if: env.apt_packages
run: sudo apt-get install ${{ env.apt_packages }}
- name: Run tests
run: |
python3 setup.py egg_info
python3 -m pytest
test_other_os:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: (github.repository == 'mhvk/baseband' && (github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'Extra CI')))
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install Python dependencies
run: python -m pip install --upgrade tox
- name: Run tests
run: tox -v -e test