From 201ed569de80d82ffaa4b90abb63b267da9767f2 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Tue, 5 Sep 2023 21:53:16 -0700 Subject: [PATCH] no working-directory in actions --- .github/workflows/tests.yml | 5 ++--- nwb_linkml/src/nwb_linkml/adapters/namespaces.py | 1 + nwb_linkml/tests/test_maps.py | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 02db187..1143cf9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,13 +24,12 @@ jobs: working-directory: nwb_linkml - uses: pavelzw/pytest-action@v2 - working-directory: nwb_linkml with: emoji: true verbose: true job-summary: true + custom_arguments: 'nwb_linkml' - - working-directory: nwb_linkml - run: "coveralls --service=github" + - run: "coveralls --service=github" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/nwb_linkml/src/nwb_linkml/adapters/namespaces.py b/nwb_linkml/src/nwb_linkml/adapters/namespaces.py index b5a4b23..4e24cdc 100644 --- a/nwb_linkml/src/nwb_linkml/adapters/namespaces.py +++ b/nwb_linkml/src/nwb_linkml/adapters/namespaces.py @@ -5,6 +5,7 @@ Wraps the :class:`nwb_schema_language.Namespaces` and other objects with conveni for extracting information and generating translated schema """ import pdb + from typing import List, Optional from pathlib import Path from pydantic import BaseModel, Field, validator, PrivateAttr diff --git a/nwb_linkml/tests/test_maps.py b/nwb_linkml/tests/test_maps.py index 7fa2571..7fc44f9 100644 --- a/nwb_linkml/tests/test_maps.py +++ b/nwb_linkml/tests/test_maps.py @@ -1,6 +1,5 @@ import pytest -import shutil - +import os import tempfile import yaml from yaml import CDumper as Dumper @@ -36,7 +35,7 @@ def test_preload_maps(): assert 'neurodata_type_inc' in loaded['groups'][0]['datasets'][0].keys() assert 'data_type_inc' not in loaded['groups'][0]['datasets'][0].keys() - shutil.rmtree(temp_name) + os.remove(temp_name)