mirror of
https://github.com/timsutton/brigadier.git
synced 2025-06-04 08:59:48 -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
|
||||
run: bash .\ci\windows\ci-windows.sh
|
||||
|
||||
- name: Archive production artifacts
|
||||
- name: Archive
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: brigadier-windows-exe
|
||||
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 )"
|
||||
python="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/python"
|
||||
ls '/c/program files'
|
||||
|
||||
export PYTHONPATH="${python}"
|
||||
$python -V
|
||||
|
||||
$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"
|
||||
|
||||
pyinstaller \
|
||||
--onefile \
|
||||
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