summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-01-17 10:32:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-01-17 10:53:53 -0500
commit494cfd015bcc52b515087cefa029a28979d74274 (patch)
tree041d4fb3c375da657ff052fe0c6c201245e25a26
parentc84315f3c20f2d7ad921d2ac6600ba3d420147aa (diff)
downloadpython-coveragepy-git-494cfd015bcc52b515087cefa029a28979d74274.tar.gz
build: a cron action to test Python nightly once a week
-rw-r--r--.github/workflows/python-nightly.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/python-nightly.yml b/.github/workflows/python-nightly.yml
new file mode 100644
index 00000000..1bd83737
--- /dev/null
+++ b/.github/workflows/python-nightly.yml
@@ -0,0 +1,56 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
+
+name: "Python Nightly Tests"
+
+on:
+ schedule:
+ # Run at 2:22am early Saturday morning https://crontab.guru/#22_2_*_*_6
+ # so that we get tips of CPython development tested.
+ - cron: "22 2 * * 6"
+ workflow_dispatch:
+
+defaults:
+ run:
+ shell: bash
+
+env:
+ PIP_DISABLE_PIP_VERSION_CHECK: 1
+ COVERAGE_IGOR_VERBOSE: 1
+
+jobs:
+ tests:
+ name: "Python nightly ${{ matrix.python-version }}"
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ python-version:
+ # When changing this list, be sure to check the [gh-actions] list in
+ # tox.ini so that tox will run properly. PYVERSIONS
+ # Available versions:
+ # https://launchpad.net/~deadsnakes/+archive/ubuntu/nightly/+packages
+ - "3.9-dev"
+ - "3.10-dev"
+ - "3.11-dev"
+ fail-fast: false
+
+ steps:
+ - name: "Check out the repo"
+ uses: "actions/checkout@v2"
+
+ - name: "Install Python ${{ matrix.python-version }}"
+ uses: "deadsnakes/action@v2.1.1"
+ with:
+ python-version: "${{ matrix.python-version }}"
+
+ - name: "Install dependencies"
+ run: |
+ set -xe
+ python -VV
+ python -m site
+ python -m pip install -r requirements/tox.pip
+
+ - name: "Run tox for ${{ matrix.python-version }}"
+ run: |
+ python -m tox -- -rfsEX