diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fdc1f61c..8088c4d2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.9, 3.10, 3.11, 3.12] steps: - uses: actions/checkout@v3 @@ -26,7 +26,7 @@ jobs: pip install -e .[dev] sudo apt install gringo sudo apt-get install graphviz - - if: ${{ matrix.python-version == '3.9' }} + - if: ${{ matrix.python-version == '3.12' }} name: Get branch name run: | REF=${{ github.ref }} @@ -35,7 +35,7 @@ jobs: BRANCH_NAME="${PATHS[1]}_${PATHS[2]}" echo $BRANCH_NAME echo "BRANCH=$(echo ${BRANCH_NAME})" >> $GITHUB_ENV - - if: ${{ matrix.python-version == '3.9' }} + - if: ${{ matrix.python-version == '3.12' }} name: Create placeholder coverage badge uses: schneegans/dynamic-badges-action@v1.0.0 with: @@ -51,15 +51,15 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Tests - run: pytest + run: python -m pytest # Only get coverage once - - if: ${{ matrix.python-version == '3.9' }} + - if: ${{ matrix.python-version == '3.12' }} name: Get coverage run: | - REPORT="$(pytest --cov=macq)" + REPORT="$(python -m pytest --cov=macq)" for line in "${REPORT[@]}"; do echo "$line"; done echo "COVERAGE=$(echo $REPORT | tail -c85 | head -c3)" >> $GITHUB_ENV - - if: ${{ matrix.python-version == '3.9' }} + - if: ${{ matrix.python-version == '3.12' }} name: Create coverage badge uses: schneegans/dynamic-badges-action@v1.0.0 with: diff --git a/setup.py b/setup.py index 8f0412dd..b7bf12d7 100644 --- a/setup.py +++ b/setup.py @@ -34,9 +34,10 @@ "Topic :: Scientific/Engineering :: Mathematics", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3 :: Only", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", @@ -60,7 +61,7 @@ keywords="planning model acquisition trace", url="https://github.com/ai-planning/macq", classifiers=CLASSIFIERS, - python_requires=">=3.7", + python_requires=">=3.9", install_requires=DEPENDENCIES, extras_require={"dev": DEV_DEPENDENCIES}, ) diff --git a/tests/extract/test_amdn.py b/tests/extract/test_amdn.py index 920c828a..1159190f 100644 --- a/tests/extract/test_amdn.py +++ b/tests/extract/test_amdn.py @@ -19,7 +19,7 @@ def test_tokenization_error(): trace.tokenize(Token=NoisyPartialDisorderedParallelObservation) -def test_tracelist(): +def gen_tracelist(): # define objects red_truck = PlanningObject("", "red_truck") blue_truck = PlanningObject("", "blue_truck") @@ -230,7 +230,7 @@ def test_amdn(): ).traces # use the simple truck domain for debugging - # traces = test_tracelist() + # traces = gen_tracelist() # use the simple door domain for debugging # dom = str((base / "pddl_testing_files/door_dom.pddl").resolve())