Skip to content

Commit

Permalink
Merge pull request #1135 from WilliamJamieson/ci/s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Apr 18, 2022
1 parent 5ff957c commit 5a73f98
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/s390x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,57 @@ name: s390x

on:
workflow_dispatch:
push:
tags:
- '*'
schedule:
# Run every Monday at 6am UTC
- cron: '0 6 * * 1'
pull_request:
# We also want this workflow triggered if the `s390x` label is
# added or present when PR is updated
types:
- synchronize
- labeled
push:
branches:
- '*.*.x'
tags:
- '*'

jobs:
pytest:
name: Python 3.8
runs-on: ubuntu-18.04
name: Python 3.7
if: (github.repository == 'asdf-format/asdf' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 's390x')))
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: uraimo/run-on-arch-action@v2.0.5
- uses: uraimo/run-on-arch-action@v2.2.0
name: Run tests
id: build
with:
arch: s390x
distro: buster
distro: bullseye
shell: /bin/bash
install: |
echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
apt-get update -q -y
apt-get install -q -y git \
g++ \
pkg-config \
python3 \
python3-configobj \
python3-astropy \
python3-lz4 \
python3-numpy \
python3-ply \
python3-venv \
python3-wheel
python3-wheel \
cython3 \
libwcs7/bullseye-backports \
wcslib-dev/bullseye-backports \
libcfitsio-dev \
liberfa1
run: |
python3 -m venv --system-site-packages tests
source tests/bin/activate
Expand Down

0 comments on commit 5a73f98

Please sign in to comment.