Skip to content

Commit

Permalink
Fix deprecated import.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Sep 4, 2023
1 parent c596151 commit b349be0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
versions:
# scan python versions
- {tag: "3.6", tf: ""}
- {tag: "3.7", tf: ""}
- {tag: "3.8", tf: ""}
- {tag: "3.9", tf: ""}
- {tag: "3.10", tf: ""}
- {tag: "3.11", tf: ""}
- {tag: "3.6", tf: "default"}
- {tag: "3.7", tf: "default"}
- {tag: "3.8", tf: "default"}
- {tag: "3.9", tf: "default"}
- {tag: "3.10", tf: "default"}
- {tag: "3.11", tf: "default"}
# scan tf versions
- {tag: "3.9_base", tf: "2.5.3"}
- {tag: "3.9_base", tf: "2.6.5"}
Expand All @@ -48,4 +49,4 @@ jobs:
run: docker pull cmsml/cmsml:${{ matrix.versions.tag }}

- name: Test 🎰
run: bash tests/docker.sh cmsml/cmsml:${{ matrix.versions.tag }} "[ -z '${{ matrix.versions.tf }}' ] || pip install -U tensorflow=='${{ matrix.versions.tf }}'; python -m unittest tests"
run: bash tests/docker.sh cmsml/cmsml:${{ matrix.versions.tag }} "[ '${{ matrix.versions.tf }}' = 'default' ] || pip install -U tensorflow=='${{ matrix.versions.tf }}'; python -m unittest tests"
2 changes: 1 addition & 1 deletion cmsml/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import tempfile
import contextlib
import importlib
from collections import MappingView
from collections.abc import MappingView
from types import GeneratorType, ModuleType
from typing import Any

Expand Down

0 comments on commit b349be0

Please sign in to comment.