Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to OpenAstronomy GitHub Action setup #176

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches:
- main
- stable
- v*.*.x
pull_request:
workflow_dispatch:

jobs:
test:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
- linux: py311
- macos: py310
- windows: py39
- linux: build_docs
libraries:
apt:
- pandoc
with:
PYDEVD_DISABLE_FILE_VALIDATION: 1

# coverage: 'codecov'
# secrets:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
132 changes: 0 additions & 132 deletions .github/workflows/testing.yml

This file was deleted.

37 changes: 37 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[tox]
envlist = clean,py310,build_docs
isolated_build = True

[testenv]
allowlist_externals =
/bin/bash
/usr/bin/bash
echo
setenv =
MPLBACKEND = agg
COLUMNS = 180
PYTEST_COMMAND = pytest --pyargs xrtpy
extras = tests
deps =
cov: pytest-cov
pytest-github-actions-annotate-failures
commands =
all: {env:PYTEST_COMMAND} {posargs}
cov-all: {env:PYTEST_COMMAND} {posargs} --cov=xrtpy --cov-report=xml --cov-config={toxinidir}{/}setup.cfg --cov-append --cov-report xml:coverage.xml

description =
run tests
minimal: with minimal versions of dependencies
cov: with code coverage

[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

[testenv:build_docs]
changedir = {toxinidir}
extras = docs
setenv =
HOME = {envtmpdir}
commands = sphinx-build docs docs{/}_build{/}html -W -n --keep-going -b html {posargs}
Loading