-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow to test ltt against the latest pip version (#70)
* add workflow to test ltt against the latest pip version * fix * automatically open issues when running on a schedule * cleanup
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Unit tests fail with `pip=={{ env.VERSION }}` | ||
assignees: pmeier | ||
--- | ||
|
||
See https://github.com/{{ env.REPO }}/actions/runs/{{ env.ID }} for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Include `pip=={{ env.VERSION }}` in the supported versions | ||
assignees: pmeier | ||
--- | ||
|
||
Unit tests succeeded in https://github.com/{{ env.REPO }}/actions/runs/{{ env.ID }}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: tests-pip-latest | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/tests-pip-latest.yml" | ||
|
||
schedule: | ||
- cron: "0 4 * * *" | ||
|
||
jobs: | ||
unit: | ||
strategy: | ||
matrix: | ||
release: | ||
- stable | ||
- pre-release | ||
fail-fast: false | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup development environment | ||
uses: ./.github/actions/setup-dev-env | ||
|
||
- name: Extract current pip version | ||
id: current | ||
run: | | ||
VERSION=`pip show pip | grep Version | sed 's/Version: \(.*\)/\1/'` | ||
echo "${VERSION}" | ||
echo "::set-output name=version::${VERSION}" | ||
- name: Upgrade pip and extract version | ||
id: latest | ||
env: | ||
RELEASE: ${{ matrix.release }} | ||
run: | | ||
PRE=`if [[ $RELEASE == 'pre-release' ]]; then echo '--pre'; fi` | ||
python -m pip install -qqq --upgrade $PRE pip | ||
VERSION=`pip show pip | grep Version | sed 's/Version: \(.*\)/\1/'` | ||
echo "${VERSION}" | ||
echo "::set-output name=version::${VERSION}" | ||
- name: Run unit test | ||
if: steps.current.outputs.version != steps.latest.outputs.version | ||
run: doit test | ||
|
||
- uses: JasonEtco/create-an-issue@v2.6.0 | ||
if: github.event_name == 'schedule' && failure() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ steps.latest.outputs.version }} | ||
with: | ||
filename: .github/pip_latest_failure_issue_template.md | ||
update_existing: false | ||
|
||
- uses: JasonEtco/create-an-issue@v2.6.0 | ||
if: github.event_name == 'schedule' && success() && matrix.release == 'stable' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ steps.latest.outputs.version }} | ||
with: | ||
filename: .github/pip_latest_success_issue_template.md | ||
update_existing: false |