diff options
| author | Paul Ganssle <paul@ganssle.io> | 2021-05-21 12:47:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-21 12:47:37 -0400 |
| commit | 65687e15e58a6135f54ece9af005ec53fc22f7ed (patch) | |
| tree | 8797ac5d87e8b756b345267bc30a36af6242f330 | |
| parent | 7ca3eb2699a0c4920febfbdddbb41a9ac78a4758 (diff) | |
| parent | b861d94addb0df61fb978530e340ae0fe7a4d08d (diff) | |
| download | dateutil-git-65687e15e58a6135f54ece9af005ec53fc22f7ed.tar.gz | |
Merge pull request #1132 from mariocj89/pu/ghactions3
ci: Move docs, build and tz tox env validation to github actions
| -rw-r--r-- | .github/workflows/validate.yml | 55 | ||||
| -rw-r--r-- | .travis.yml | 22 |
2 files changed, 55 insertions, 22 deletions
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 1c2194a..c5bb528 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -59,3 +59,58 @@ jobs: file: ./.tox/coverage.xml name: ${{ matrix.os }}:${{ matrix.python-version }} fail_ci_if_error: true + + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Install tox + run: python -m pip install -U tox + - name: Run tox + run: python -m tox -e docs + + latest-tz: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Install tox + run: python -m pip install -U "tox<3.8.0" + - name: Run updatezinfo.py + run: ./ci_tools/retry.sh python updatezinfo.py + - name: Run tox + run: python -m tox -e tz + + build-dist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install tox + run: python -m pip install -U tox + - name: Run tox + run: python -m tox -e build + - name: Check generation + run: | + exactly_one() { + value=$(find dist -iname $1 | wc -l) + if [ $value -ne 1 ]; then + echo "Found $value instances of $1, not 1" + return 1 + else + echo "Found exactly 1 instance of $value" + fi + } + # Check that exactly one tarball and one wheel are created + exactly_one '*.tar.gz' + exactly_one '*.whl' diff --git a/.travis.yml b/.travis.yml index 529df72..2fc90d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,12 +12,6 @@ matrix: # This is required to run Python 3.3 on Travis dist: trusty env: TOXENV=py33 # Needed because "py" won't invoke testenv:py33 - - python: 3.6 - env: TOXENV=docs - - python: 3.6 - env: TOXENV=tz - - python: 3.7 - env: TOXENV=build allow_failures: - python: "nightly" @@ -36,22 +30,6 @@ install: script: - tox - - | - if [[ $TOXENV == "build" ]]; then - exactly_one() { - value=$(find dist -iname $1 | wc -l) - if [ $value -ne 1 ]; then - echo "Found $value instances of $1, not 1" - return 1 - else - echo "Found exactly 1 instance of $value" - fi - } - - # Check that exactly one tarball and one wheel are created - exactly_one '*.tar.gz' - exactly_one '*.whl' - fi after_success: - if [[ $TOXENV == "py" ]]; then tox -e coverage,codecov; fi |
