From 30dd21be568e13d09e25d7a809fba827e685cf35 Mon Sep 17 00:00:00 2001 From: IanCa Date: Fri, 3 Mar 2023 10:54:38 -0600 Subject: [PATCH] fix spec tests workflow/tests --- .github/workflows/spec_tests.yaml | 10 +++++++--- spec_tests/test_errors.py | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/spec_tests.yaml b/.github/workflows/spec_tests.yaml index 04328ec07..7c56db1c0 100644 --- a/.github/workflows/spec_tests.yaml +++ b/.github/workflows/spec_tests.yaml @@ -1,4 +1,4 @@ -name: CI +name: Spec_tests on: push: @@ -16,12 +16,16 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - name: Checkout hed-python + uses: actions/checkout@v3 + + - name: Checkout spec + uses: actions/checkout@v3 with: repository: hed-standard/hed-specification ref: develop + path: hed-specification - - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: diff --git a/spec_tests/test_errors.py b/spec_tests/test_errors.py index 68db9ab2b..4027d985f 100644 --- a/spec_tests/test_errors.py +++ b/spec_tests/test_errors.py @@ -11,7 +11,7 @@ class MyTestCase(unittest.TestCase): @classmethod def setUpClass(cls): test_dir = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), - '../../hed-specification/docs/source/_static/data/error_tests')) + '../hed-specification/docs/source/_static/data/error_tests')) cls.test_files = [os.path.join(test_dir, f) for f in os.listdir(test_dir) if os.path.isfile(os.path.join(test_dir, f))] cls.fail_count = 0