Skip to content

Monthly cron

Monthly cron #44

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