diff --git a/.github/workflows/tests-pip.yml b/.github/workflows/tests-pip.yml index 7e64fd8..8ea84cd 100644 --- a/.github/workflows/tests-pip.yml +++ b/.github/workflows/tests-pip.yml @@ -31,23 +31,22 @@ jobs: pytest tests version-check: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - python-version: [3.6] - os: [ubuntu-20.04] + python-version: [ 3.9, 3.11 ] name: "Version Check: Python ${{ matrix.python-version }}" steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install Cookiecutter - run: | - python -m pip install --upgrade pip - pip install cookiecutter~=1.7.2 - - name: Run Version Check - run: | - python tests/version_check.py --fail + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install Cookiecutter and dependencies + run: | + python -m pip install --upgrade pip + python -m pip install cookiecutter packaging + - name: Run Version Check + run: | + python tests/version_check.py --fail diff --git a/tests/version_check.py b/tests/version_check.py index 95853c3..7a91128 100644 --- a/tests/version_check.py +++ b/tests/version_check.py @@ -23,7 +23,7 @@ shutil.rmtree(temp_dir, ignore_errors=True) # handle possible issues & give proper return codes -if b'Python 3.8 or higher' in stdout or b'successfully created' in stdout: +if b'Python 3.9 or higher' in stdout or b'successfully created' in stdout: status = {True: "failed", False: "succeded"} if actual_fail == expect_fail: print(f"Python {platform.python_version()} {status[expect_fail]} as expected")