Skip to content

Commit

Permalink
update Python versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Aug 27, 2024
1 parent 4c5842e commit c8165ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -28,15 +28,11 @@ 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 ⚙️
run: flake8
- 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
4 changes: 1 addition & 3 deletions pygeometa/schemas/ogcapi_records/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit c8165ec

Please sign in to comment.