diff options
author | Paul Ganssle <1377457+pganssle@users.noreply.github.com> | 2022-12-03 13:10:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 13:10:40 -0500 |
commit | e8151c15172620d8d55e410f9297564368c886bf (patch) | |
tree | bd95a12b41d0fa82f75c53a26cf759da3b83d8b1 | |
parent | a94268249256bcaf8f77654b77794b42297ecf99 (diff) | |
parent | 5d7d209b44adc7dd35adca354324d64a6eb320d6 (diff) | |
download | dateutil-git-e8151c15172620d8d55e410f9297564368c886bf.tar.gz |
Merge pull request #1247 from pganssle/update_gha
Update Github Actions configuration for old Pythons
-rw-r--r-- | .github/workflows/validate.yml | 56 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 34 insertions, 23 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index bb692c2..296da5a 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -25,7 +25,19 @@ jobs: "pypy-3.8", ] os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} + exclude: + - python-version: "2.7" + os: "ubuntu-latest" + - python-version: "3.5" + os: "ubuntu-latest" + - python-version: "3.6" + os: "ubuntu-latest" + include: + - python-version: "2.7" + os: "ubuntu-20.04" + - python-version: "3.5" + os: "ubuntu-20.04" + - python-version: "3.6" os: "ubuntu-20.04" runs-on: ${{ matrix.os }} env: TOXENV: py steps: @@ -60,33 +72,33 @@ jobs: name: ${{ matrix.os }}:${{ matrix.python-version }} fail_ci_if_error: true - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.6 - - name: Install tox - run: python -m pip install -U tox - - name: Run tox - run: python -m tox -e docs + other: + runs-on: "ubuntu-latest" + strategy: + matrix: + toxenv: ["docs", "tz"] + env: + TOXENV: ${{ matrix.toxenv }} - latest-tz: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 + - name: ${{ matrix.toxenv }} + uses: actions/setup-python@v4 with: - python-version: 3.6 + python-version: "3.10" - name: Install tox - run: python -m pip install -U "tox<3.8.0" + run: | + python -m pip install --upgrade pip + if [[ $TOXENV == "tz" ]]; then + python -m pip install -U "tox<3.8.0" + else + python -m pip install -U tox + fi - name: Run updatezinfo.py run: ./ci_tools/retry.sh python updatezinfo.py - - name: Run tox - run: python -m tox -e tz + if: matrix.toxenv == 'tox' + - name: Run action + run: tox build-dist: runs-on: ubuntu-latest @@ -95,7 +107,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v3 with: - python-version: "3.9" + python-version: "3.10" - name: Install tox run: python -m pip install -U tox - name: Run tox @@ -99,7 +99,6 @@ commands = [testenv:build] description = Build an sdist and bdist -basepython = python3.9 skip_install = true passenv = * deps = build[virtualenv] >= 0.3.0 |