Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHA: linting and setting up compilers #9

Merged
merged 2 commits into from
Dec 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,33 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- uses: robinraju/[email protected]
with:
repository: microsoft/DirectXShaderCompiler
extract: true
tag: v1.8.2407
fileName: dxc_2024_07_31.zip
out-file-path: '.dxc'
- uses: robinraju/[email protected]
with:
repository: KhronosGroup/glslang
extract: true
tag: main-tot
fileName: glslang-master-windows-Release.zip
out-file-path: '.glslang'
- name: Print the directory tree
run: |
pwd
tree /F
- name: Configure the environment for tests
run: |
Add-Content $env:GITHUB_PATH $env:GITHUB_WORKSPACE\.dxc\bin\x64
Add-Content $env:GITHUB_PATH $env:GITHUB_WORKSPACE\.glslang\bin
Add-Content $env:GITHUB_ENV METASHADE_PYTEST_OUT_DIR=$env:GITHUB_WORKSPACE/tests/out