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

Added CI jobs that use conda compilers #52

Merged
merged 3 commits into from
Oct 3, 2022
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ jobs:
uses: codecov/[email protected]
with:
file: ./coverage.xml

extra-tests:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
envs: |
# Note that adding -conda ensures that the workflow sets up
# a conda environment, but does not change any of the behavior
# in tox.
- linux: py39-test-linuxgcc-conda
- macos: py39-test-osxclang-conda
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310}-test{,-oldestdeps,-devdeps,-casa}
py{38,39,310}-test{,-oldestdeps,-devdeps,-casa}{,-conda}
build_docs
codestyle
requires =
Expand All @@ -19,6 +19,10 @@ passenv =
LC_ALL
LC_CTYPE
ON_TRAVIS
CONDA_BUILD_SYSROOT
setenv =
osxclang: CC=clang-10 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
linuxgcc: CC=x86_64-conda-linux-gnu-gcc
changedir =
.tmp/{envname}
description =
Expand All @@ -37,6 +41,12 @@ deps =
# Note that it looks like there is a casatools bug in 6.4.3.8
# https://github.com/radio-astro-tools/casa-formats-io/issues/39
casa-!oldestdeps: :NRAO:casatools<6.4.3.8
conda_deps =
osxclang: clang_osx-64==10
osxclang: llvm-openmp
linuxgcc: gcc_linux-64
conda_channels =
linuxgcc: conda-forge
extras =
test
commands =
Expand Down