Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Allow running twisted trunk against other branches
Browse files Browse the repository at this point in the history
I would like to do this so we can try Synapse's typechecking against a
specific branch that the project solicited tests for, see
https://mail.python.org/archives/list/[email protected]/message/GGO5JHA5S475AK6JZ3GCC3GIHGKQYM6Y/
  • Loading branch information
David Robertson committed Mar 21, 2023
1 parent d0fe417 commit d979757
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/twisted_trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
- cron: 0 8 * * *

workflow_dispatch:
inputs:
twisted_ref:
description: Commit, branch or tag to checkout from upstream Twisted.
required: false
default: 'trunk'
type: string


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -29,7 +36,7 @@ jobs:
extras: "all"
- run: |
poetry remove twisted
poetry add --extras tls git+https://github.com/twisted/twisted.git#trunk
poetry add --extras tls git+https://github.com/twisted/twisted.git#${{ inputs.twisted_ref }}
poetry install --no-interaction --extras "all test"
- name: Remove warn_unused_ignores from mypy config
run: sed '/warn_unused_ignores = True/d' -i mypy.ini
Expand Down

0 comments on commit d979757

Please sign in to comment.