From 860f13075a88bef2c6fca5bea01bf0c7a82039f6 Mon Sep 17 00:00:00 2001 From: Yu Ishikawa Date: Mon, 13 Feb 2023 15:35:09 +0900 Subject: [PATCH] Test with python 3.11 too (#31) --- .github/workflows/test-publish.yml | 2 +- .github/workflows/test.yml | 2 +- pylintrc => .pylintrc | 0 tests/test_utils.py | 9 +++++---- 4 files changed, 7 insertions(+), 6 deletions(-) rename pylintrc => .pylintrc (100%) diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml index ba42481..914b007 100644 --- a/.github/workflows/test-publish.yml +++ b/.github/workflows/test-publish.yml @@ -52,7 +52,7 @@ jobs: shell: bash strategy: matrix: - python-version: [ "3.7", "3.8", "3.9", "3.10" ] + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] steps: - name: Dump GitHub context env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 05319bf..acc11f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] fail-fast: false defaults: diff --git a/pylintrc b/.pylintrc similarity index 100% rename from pylintrc rename to .pylintrc diff --git a/tests/test_utils.py b/tests/test_utils.py index 803c19b..673e217 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -13,13 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. import os +import unittest from dbt_artifacts_parser.utils import get_project_root -class TestUtils: +class TestUtils(unittest.TestCase): def test_get_project_root(self): - assert ( - get_project_root() - == os.path.abspath(os.path.dirname(os.path.dirname(__file__))), + self.assertEqual( + get_project_root(), + os.path.abspath(os.path.dirname(os.path.dirname(__file__))) )