Skip to content

Commit

Permalink
(test) setup workflows to compile holopatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Feb 25, 2024
1 parent f4e4c38 commit e70e6c6
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/compile_holopatcher_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python 3.12 HoloPatcher compile

on: [push]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

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

- name: Compile HoloPatcher
run: |
./install_python_venv.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
shell: pwsh

- name: Upload HoloPatcher binary
uses: actions/upload-artifact@v3
with:
name: HoloPatcher-executable
path: ./dist/HoloPatcher
31 changes: 31 additions & 0 deletions .github/workflows/compile_holopatcher_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python 3.12 unittest

on: [push]

permissions:
contents: read

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

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

- name: Compile HoloPatcher
run: |
./install_python_venv.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
shell: pwsh

- name: Upload HoloPatcher.exe
uses: actions/upload-artifact@v3
with:
name: HoloPatcher-executable
path: ./dist/HoloPatcher.exe
3 changes: 2 additions & 1 deletion .github/workflows/unittest_python_3_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Run unittest on files in pykotor/tests
run: |
./install_python_venv.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/deps_toolset.ps1 -noprompt
pip install -r requirements-dev.txt
python -m unittest discover -s tests -p 'test_*.py' -v
shell: pwsh
3 changes: 2 additions & 1 deletion .github/workflows/unittest_python_3_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Run unittest on files in pykotor/tests
run: |
./install_python_venv.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/deps_toolset.ps1 -noprompt
pip install -r requirements-dev.txt
python -m unittest discover -s tests -p 'test_*.py' -v
shell: pwsh
3 changes: 2 additions & 1 deletion .github/workflows/unittest_python_3_12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Run unittest on files in pykotor/tests
run: |
./install_python_venv.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/deps_toolset.ps1 -noprompt
pip install -r requirements-dev.txt
python -m unittest discover -s tests -p 'test_*.py' -v
shell: pwsh
5 changes: 3 additions & 2 deletions .github/workflows/unittest_python_3_8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Run unittest on files in pykotor/tests
run: |
./install_python_venv.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/deps_toolset.ps1 -noprompt
pip install -r requirements-dev.txt
python -m unittest discover -s tests -p 'test_*.py' -v
shell: pwsh
shell: pwsh
3 changes: 2 additions & 1 deletion .github/workflows/unittest_python_3_9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Run unittest on files in pykotor/tests
run: |
./install_python_venv.ps1 -noprompt
./compile/compile_holopatcher.ps1 -noprompt
./compile/deps_holopatcher.ps1 -noprompt
./compile/deps_toolset.ps1 -noprompt
pip install -r requirements-dev.txt
python -m unittest discover -s tests -p 'test_*.py' -v
shell: pwsh

0 comments on commit e70e6c6

Please sign in to comment.