mirror of
https://github.com/timsutton/brigadier.git
synced 2025-06-06 17:51:22 -04:00
test
This commit is contained in:
parent
701de67651
commit
ba6286a9e7
3 changed files with 15 additions and 3 deletions
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
@ -29,8 +29,11 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bash .\ci\windows\ci-windows.sh
|
run: bash .\ci\windows\ci-windows.sh
|
||||||
|
|
||||||
- name: Archive production artifacts
|
- name: Archive
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: brigadier-windows-exe
|
name: brigadier-windows-exe
|
||||||
path: D:\a\brigadier\brigadier\dist
|
path: D:\a\brigadier\brigadier\dist
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: bash .\ci\windows\test.sh
|
||||||
|
|
|
@ -6,13 +6,15 @@ PYTHON_VERSION=2.7.18
|
||||||
|
|
||||||
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd )"
|
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd )"
|
||||||
python="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/python"
|
python="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/python"
|
||||||
ls '/c/program files'
|
|
||||||
export PYTHONPATH="${python}"
|
export PYTHONPATH="${python}"
|
||||||
$python -V
|
$python -V
|
||||||
|
|
||||||
$python -m pip install -r "${script_dir}/requirements.txt"
|
$python -m pip install -r "${script_dir}/requirements.txt"
|
||||||
|
|
||||||
|
# pip-installed exes will be installed here, so we'll put those at the front
|
||||||
|
# of the PATH
|
||||||
PATH="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/Scripts:$PATH"
|
PATH="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/Scripts:$PATH"
|
||||||
|
|
||||||
pyinstaller \
|
pyinstaller \
|
||||||
--onefile \
|
--onefile \
|
||||||
brigadier
|
brigadier
|
||||||
|
|
7
ci/windows/test.sh
Normal file
7
ci/windows/test.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux -o pipefail
|
||||||
|
|
||||||
|
whoami
|
||||||
|
|
||||||
|
/d/a/brigadier/brigadier/dist/brigadier -m Macmini4,1
|
Loading…
Add table
Add a link
Reference in a new issue