Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3cb00a5
test the workflow
th3w1zard1 Feb 6, 2024
590e15c
don't chmod on windows
th3w1zard1 Feb 6, 2024
43ed2e4
capture output
th3w1zard1 Feb 6, 2024
6007dd2
Revert "capture output"
th3w1zard1 Feb 6, 2024
3503d06
Update compile_all_scripts.yml
th3w1zard1 Feb 6, 2024
0961fdf
add a reporter
th3w1zard1 Feb 6, 2024
e53507e
fix reporter
th3w1zard1 Feb 6, 2024
2e9505b
always run the reporter even if the tests fail
th3w1zard1 Feb 6, 2024
9e7d1dd
test the capture flag
th3w1zard1 Feb 6, 2024
11fabde
remove all nwnnsscomp except tslpatcher's
th3w1zard1 Feb 6, 2024
052b772
test multi threading to speed up tests
th3w1zard1 Feb 6, 2024
f1511a3
run the test
th3w1zard1 Feb 6, 2024
e195be1
split k2 and k1 tests for speed
th3w1zard1 Feb 6, 2024
3a57bc8
rename tests for clarity
th3w1zard1 Feb 6, 2024
d245b71
run the new optimized include symlinking logic
th3w1zard1 Feb 6, 2024
8423001
fix the reporter x2
th3w1zard1 Feb 6, 2024
059fc07
Update test_compile_tsl_scripts.yml
th3w1zard1 Feb 6, 2024
83eaf8e
don't rely on 3rd party reporting, just upload the thing
th3w1zard1 Feb 6, 2024
495aa8e
Merge branch 'KOTORCommunityPatches:master' into add-workflow-test
th3w1zard1 Feb 6, 2024
b608d01
Merge remote-tracking branch 'upstream/master' into add-workflow-test
th3w1zard1 Feb 8, 2024
f747509
reduce verbosity of main output
th3w1zard1 Feb 8, 2024
84b3a52
Merge branch 'KOTORCommunityPatches:master' into add-workflow-test
th3w1zard1 Feb 8, 2024
3b29d2f
Merge branch 'KOTORCommunityPatches:master' into add-workflow-test
th3w1zard1 Feb 8, 2024
a2d3408
Merge branch 'KOTORCommunityPatches:master' into add-workflow-test
th3w1zard1 May 6, 2024
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
42 changes: 42 additions & 0 deletions .github/workflows/test_compile_k1_scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: K1 Scripts Test

on: [push]

permissions:
contents: read

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"

- name: Run PyKotor's Compile Tests
run: |
git clone --branch vanilla-source-test https://github.com/th3w1zard1/PyKotor.git PyKotor
cd PyKotor
./install_python_venv.ps1 -noprompt
python -m pip install -r ./Libraries/PyKotor/requirements.txt --prefer-binary
python -m pip install -r ./Libraries/PyKotor/recommended.txt --prefer-binary
python -m pip install pytest pytest-html pytest-xdist
python -m pytest ./tests/resource/formats/pytest_ncs_compile_installation.py -v --tb=no -ra -o log_cli=true --capture=no --junitxml=pytest_report.xml --html=pytest_report.html --self-contained-html -n auto
shell: pwsh

- name: Upload Pytest Reports
uses: actions/upload-artifact@v3
if: always() # Ensures this step runs even if the previous step fails
with:
name: pytest-reports
path: |
PyKotor/pytest_report.html
PyKotor/pytest_report.xml
PyKotor/FAILED_TESTS.log
PyKotor/fallback_level_info_*
PyKotor/fallback_level_debug_*
PyKotor/*_incompatible_*
43 changes: 43 additions & 0 deletions .github/workflows/test_compile_tsl_scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: TSL Scripts Test

on: [push]

permissions:
contents: read

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"

- name: Run PyKotor's Compile Tests
run: |
git clone --branch vanilla-source-test-k2 https://github.com/th3w1zard1/PyKotor.git PyKotor
cd PyKotor
./install_python_venv.ps1 -noprompt
python -m pip install -r ./Libraries/PyKotor/requirements.txt --prefer-binary
python -m pip install -r ./Libraries/PyKotor/recommended.txt --prefer-binary
python -m pip install pytest pytest-html pytest-xdist
python -m pytest ./tests/resource/formats/pytest_ncs_compile_installation.py -v --tb=no -ra -o log_cli=true --capture=no --junitxml=pytest_report.xml --html=pytest_report.html --self-contained-html -n auto
shell: pwsh

- name: Upload Pytest Reports
uses: actions/upload-artifact@v3
if: always() # Ensures this step runs even if the previous step fails
with:
name: pytest-reports
path: |
PyKotor/pytest_report.html
PyKotor/pytest_report.xml
PyKotor/FAILED_TESTS.log
PyKotor/fallback_level_info_*
PyKotor/fallback_level_debug_*
PyKotor/*_incompatible_*

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@

# RTF MS Word temp file
~$*.rtf*
*.ncs
.secrets
Binary file added K1/nwnnsscomp/TSLPatcher/nwnnsscomp.exe
Binary file not shown.
Loading