Skip to content

Commit

Permalink
Merge pull request #168 from alliedmodders/psy/update-style-ci-job
Browse files Browse the repository at this point in the history
Update action and Python versions in CI style/format job
  • Loading branch information
psychonic authored Jun 15, 2024
2 parents 1154f61 + 7ebe68f commit 91a7ec7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/yapf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.12]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
Expand Down
12 changes: 6 additions & 6 deletions ambuild2/frontend/cpp/msvc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ def DetectInclusionPattern(text):

def GetCodePage():
try:
stdout = subprocess.run(
"chcp", shell=True,
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
stdin=subprocess.DEVNULL
).stdout
codec = 'cp'+re.match(b".+: (\d+)\s*$", stdout).group(1).decode()
stdout = subprocess.run("chcp",
shell = True,
stdout = subprocess.PIPE,
stderr = subprocess.DEVNULL,
stdin = subprocess.DEVNULL).stdout
codec = 'cp' + re.match(b".+: (\d+)\s*$", stdout).group(1).decode()
codecs.lookup(codec)
return codec
except LookupError:
Expand Down

0 comments on commit 91a7ec7

Please sign in to comment.