summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2022-08-09 07:21:17 -0600
committerMats Wichmann <mats@linux.com>2022-11-24 12:55:49 -0700
commitbe190150e3e095654cae98fc421530b3234d517b (patch)
tree76d96fa448cc6cc515dc64652341da91aa15fdc7 /.github
parentb34ce73d1696c1e371f83948d7695e011d3453a5 (diff)
downloadscons-git-be190150e3e095654cae98fc421530b3234d517b.tar.gz
Use f-strings in framework and framework tests
This is a mostly tool-based conversion (a couple added by hand), and other changes were not made, to try to keep the diff manageable. Adds a GitHub Action to run framework tests if framework changes. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/framework_tests.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/framework_tests.yml b/.github/workflows/framework_tests.yml
new file mode 100644
index 000000000..fcd6cf929
--- /dev/null
+++ b/.github/workflows/framework_tests.yml
@@ -0,0 +1,41 @@
+name: Test Framework Tests
+
+on:
+ # PR events only on master
+ push:
+ branches:
+ - 'master'
+ paths:
+ - 'testing/framework/*'
+
+ pull_request:
+ branches:
+ - 'master'
+ paths:
+ - 'testing/framework/*'
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+jobs:
+ fwtest:
+ strategy:
+ matrix:
+ os: ['ubuntu-latest', 'windows-latest']
+
+ # The type of runner that the job will run on
+ runs-on: ${{ matrix.os }}
+
+ steps:
+ # Checkouut repository under $GITHUB_WORKSPACE
+ - uses: actions/checkout@v2
+
+ - name: Set up Python 3.11 ${{ matrix.os }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: '3.11'
+
+ - name: Test test framework ${{ matrix.os }}
+ run: |
+ python runtest.py testing/framework
+