Skip to content

Commit 6ec7ebe

Browse files
authored
Merge pull request #230 from Toufool/always-clean-build-push-master
Clean build number on master push Add printenv action Remove 3.10 build
2 parents a64877d + b92a328 commit 6ec7ebe

File tree

6 files changed

+39
-9
lines changed

6 files changed

+39
-9
lines changed

.github/workflows/codeql-analysis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [main, master, develop, dev, 2.0.0]
16+
branches: [main, master, develop, dev]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [develop, dev, 2.0.0]
19+
branches: [develop, dev]
2020
schedule:
2121
- cron: "26 13 * * 6"
2222

.github/workflows/lint-and-build.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ on:
2222
- main
2323
- master
2424
- dev*
25-
- 2.0.0
2625
paths:
2726
- "**.py"
2827
- "**.pyi"
@@ -143,7 +142,7 @@ jobs:
143142
fail-fast: false
144143
# Only the Python version we plan on shipping matters.
145144
matrix:
146-
python-version: ["3.10", "3.11"]
145+
python-version: ["3.11"]
147146
steps:
148147
- name: Checkout ${{ github.repository }}/${{ github.ref }}
149148
uses: actions/checkout@v3

.github/workflows/printenv.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
2+
name: printenv
3+
on:
4+
workflow_dispatch: # Allows manual builds
5+
inputs:
6+
excludeBuildNumber:
7+
description: "Exclude build number"
8+
required: true
9+
default: false
10+
type: boolean
11+
# push:
12+
# branches:
13+
# - master
14+
# - dev
15+
16+
env:
17+
GITHUB_HEAD_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
18+
GITHUB_EXCLUDE_BUILD_NUMBER: ${{ inputs.excludeBuildNumber }}
19+
20+
jobs:
21+
printenv:
22+
runs-on: windows-latest
23+
steps:
24+
- name: Checkout ${{ github.repository }}/${{ github.ref }}
25+
uses: actions/checkout@v3
26+
- run: printenv

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Still need help?
233233
See [CONTRIBUTING.md](/docs/CONTRIBUTING.md) for our contributing standards.
234234
Refer to the [build instructions](/docs/build%20instructions.md) if you're interested in building the application yourself or running it in Python.
235235

236-
Not a developper? You can still help through the following methods:
236+
Not a developer? You can still help through the following methods:
237237
<!-- open enhancements sorted by reactions -->
238238
- Donating (see link below)
239239
- [Upvoting feature requests](../../issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement) you are interested in

scripts/compile_resources.ps1

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ pyside6-rcc './res/resources.qrc' -o './src/gen/resources_rc.py'
1010
Write-Host 'Generated code from .ui files'
1111

1212
$build_vars_path = "$PSScriptRoot/../src/gen/build_vars.py"
13-
$BUILD_NUMBER = If ($Env:GITHUB_EXCLUDE_BUILD_NUMBER -eq $true) { '' } Else { Get-Date -Format yyMMddHHmm }
13+
If ($Env:GITHUB_EXCLUDE_BUILD_NUMBER -eq $true -or (
14+
$Env:GITHUB_EVENT_NAME -eq 'push' -and $Env:GITHUB_REF_NAME -eq 'master')
15+
) {
16+
$BUILD_NUMBER = ''
17+
}
18+
Else {
19+
$BUILD_NUMBER = Get-Date -Format yyMMddHHmm
20+
}
1421
$GITHUB_REPOSITORY = $Env:GITHUB_HEAD_REPOSITORY
1522
If (-not $GITHUB_REPOSITORY) {
1623
$repo_url = git config --get remote.origin.url

scripts/requirements.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ packaging
1212
Pillow>=9.2 # gnome-screeshot checks
1313
psutil
1414
PyAutoGUI
15-
# 6.4.1 fixes the rare Illegal Operation issue from RTADan, but the dev wheels are currently broken :/
16-
# 2.0.0-beta.2 contains the fixes if anyone needs it.
17-
PyQt6>=6.4.0 # Python 3.11 support
15+
PyQt6>=6.4.2 # Python 3.11 support
1816
requests<=2.28.1 # 2.28.2 has issues with PyInstaller https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/534
1917
toml
2018
#

0 commit comments

Comments
 (0)