-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from JrGoodle/symlink-source-warning
Relax rules for when command can run
- Loading branch information
Showing
39 changed files
with
1,988 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: 'CI - cats clowder repo configurations' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'docs/**' | ||
pull_request: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- 'docs/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
cats_clowder_repo: | ||
env: | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
OS_NAME: ${{ matrix.os }} | ||
CLOWDER_DEBUG: true | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] # TODO: windows-latest | ||
python-version: ['3.6', '3.7', '3.8'] | ||
exclude: | ||
- os: macos-latest | ||
python-version: '3.6' | ||
- os: macos-latest | ||
python-version: '3.8' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Setup git config | ||
run: | ||
git config --global user.email "joe@polka.cat"; | ||
git config --global user.name "GitHub Actions Workflow" | ||
- name: Install clowder requirements | ||
run: pip3 install -r src/requirements.txt | ||
- name: CI before script | ||
run: script/ci_before | ||
- name: Install clowder | ||
run: script/update | ||
- name: Install clowder test | ||
run: script/test | ||
- name: Test commands for various clowder repo and clowder yaml configurations | ||
run: clowder-test -c cats clowder-repo | ||
- name: CI after script | ||
run: script/ci_after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
"""clowder_test module __init__ | ||
.. codeauthor:: Joe Decapo <joe@polka.cat> | ||
""" | ||
|
||
import os | ||
from pathlib import Path | ||
|
||
ROOT_DIR = os.getcwd() | ||
if 'CLOWDER_PROJECT_PATH' in os.environ: | ||
ROOT_DIR = Path(os.environ['CLOWDER_PROJECT_PATH']) | ||
else: | ||
path = Path.cwd() | ||
while str(path) != path.root: | ||
clowder_test_dir = path / 'clowder_test' | ||
if clowder_test_dir.is_dir(): | ||
ROOT_DIR = path | ||
break | ||
path = path.parent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
"""clowder_test cli module __init__ | ||
.. codeauthor:: Joe Decapo <joe@polka.cat> | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.