Skip to content

Commit

Permalink
Merge pull request #912 from eslavich/PR-908-2.7.x
Browse files Browse the repository at this point in the history
PR 908 2.7.x
  • Loading branch information
eslavich authored Jan 15, 2021
2 parents 5030d5a + cedb456 commit 7c98ef7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/s390x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: s390x

on:
push:
tags:
- '*'
schedule:
# Run every Monday at 6am UTC
- cron: '0 6 * * 1'

jobs:
pytest:
runs-on: ubuntu-18.04
name: Python 3.7
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: uraimo/[email protected]
name: Run tests
id: build
with:
arch: s390x
distro: buster
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -q -y git \
python3 \
python3-astropy \
python3-lz4 \
python3-numpy \
python3-venv \
python3-wheel
run: |
python3 -m venv --system-site-packages tests
source tests/bin/activate
pip3 install --upgrade pip setuptools gwcs==0.9.1 pytest==5.4.3 pytest-doctestplus==0.8.0
pip3 install .[all,tests]
python3 -m pytest --remote-data
6 changes: 6 additions & 0 deletions asdf/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import os
import io
import getpass
import pathlib
import sys

import numpy as np
from numpy.testing import assert_array_equal
Expand Down Expand Up @@ -69,6 +71,10 @@ def test_warning_deprecated_open(tmpdir):
assert_tree_match(tree, af.tree)


@pytest.mark.skipif(
not sys.platform.startswith('win') and getpass.getuser() == 'root',
reason="Cannot make file read-only if user is root"
)
def test_open_readonly(tmpdir):

tmpfile = str(tmpdir.join('readonly.asdf'))
Expand Down

0 comments on commit 7c98ef7

Please sign in to comment.