From c8165ece5637a45137829de0f130a68d70918fb5 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 26 Aug 2024 21:01:59 -0400 Subject: [PATCH] update Python versions in CI --- .github/workflows/docs.yml | 6 +++--- .github/workflows/main.yml | 10 +++------- pygeometa/schemas/ogcapi_records/__init__.py | 4 +--- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 33a8497..04dd94a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,10 +12,10 @@ jobs: name: Build and Deploy Documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@master + - uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.11' - name: Install requirements 📦 run: | python -m pip install --upgrade pip diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa1a39a..e26aa3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11"] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@master + - uses: actions/setup-python@v5 name: Setup Python ${{ matrix.python-version }} with: python-version: ${{ matrix.python-version }} @@ -28,8 +28,6 @@ jobs: run: | coverage run --source pygeometa setup.py test coverage report -m -# with: -# fail_ci_if_error: false - name: build docs 🏗️ run: mkdocs build -f docs/mkdocs.yml - name: run flake8 ⚙️ @@ -37,6 +35,4 @@ jobs: - name: build Python package 🏗️ run: python3 setup.py sdist bdist_wheel --universal - name: build Debian package 🏗️ -# with: -# fail_ci_if_error: false run: sudo debuild -b -uc -us diff --git a/pygeometa/schemas/ogcapi_records/__init__.py b/pygeometa/schemas/ogcapi_records/__init__.py index a5d3fce..1d077b2 100644 --- a/pygeometa/schemas/ogcapi_records/__init__.py +++ b/pygeometa/schemas/ogcapi_records/__init__.py @@ -415,11 +415,9 @@ def generate_date(self, date_value: str) -> str: :param date_value: `str` of date value - :returns: TODO + :returns: `str` of date-time value """ - print("VALUE", date_value) - print("VALUE", type(date_value)) value = None if isinstance(date_value, str) and date_value != 'None':