Owr actions update (#19)
* Go for Broke * Let it fire * Add PipLine * Create the dir if it doesn't exist * Install Setuptools * Track Test Action's files * Fix Calling Job * Track Build Action files * Install Distutils, rename filenames * Fix Fail conditions * Make Build scripts smarter * Add file * Concat DLLs lists * Try to fail if Error DLLs * Try to make the fail smarter * Moar verbosity * Print the stuff first * Print outputs objects * See if this skips failure * Use py instead * Print error list * Don't ValueError * Try checking a different way * Try something else * Bleh, spell filename correctly * Update excluded_dlls.json * Ugh, gotta compare old to new somehow * Compare to old list * Condense build script * Moar verbosity * Update the global version * Update Excluded DLLs list * Actually use the bad DLLs list * Make a version number * Fix version number building * Fix version number building again * Fix Diagnostics * Try REST API stuff * Try REST API again * Moar REST * await * Get SHA * Try it all together * Del test workflow * Add Perms * Use a Token * Try this Token * Try different Token * Try different Token * Create App Version earlier * See this error again * Don't fail if App Version not made yet * Use New Secret * Print whole response * Documentation for Tagger * Update CI Instructions * Update CI * List References * Find latest tag Fix App Version getter * Fix commas * Check returned data * Update Build Script * Fix substring * Fix Git tag * Fix tag again * Visual indicators * Use encoding * Remove an indicator * Update CI * Update Project Name * PyInstaller Spec Template file * Update Build Script * Fix Tagger * Update CI * Download AppVersion during build * Test job can fail * Upload Logs instead of printing them * Change from Reusable Workflow to Action * Change ref to token * Compare to string * Use PAT * Use String literal * Remove Reusable Workflow * Update CI Scripts * Go for Broke * Let it fire * Add PipLine * Create the dir if it doesn't exist * Install Setuptools * Track Test Action's files * Fix Calling Job * Track Build Action files * Install Distutils, rename filenames * Fix Fail conditions * Make Build scripts smarter * Add file * Concat DLLs lists * Try to fail if Error DLLs * Try to make the fail smarter * Moar verbosity * Print the stuff first * Print outputs objects * See if this skips failure * Use py instead * Print error list * Don't ValueError * Try checking a different way * Try something else * Bleh, spell filename correctly * Update excluded_dlls.json * Ugh, gotta compare old to new somehow * Compare to old list * Condense build script * Moar verbosity * Update the global version * Update Excluded DLLs list * Actually use the bad DLLs list * Make a version number * Fix version number building * Fix version number building again * Fix Diagnostics * Try REST API stuff * Try REST API again * Moar REST * await * Get SHA * Try it all together * Del test workflow * Add Perms * Use a Token * Try this Token * Try different Token * Try different Token * Create App Version earlier * See this error again * Don't fail if App Version not made yet * Use New Secret * Print whole response * Documentation for Tagger * Update CI Instructions * Update CI * List References * Find latest tag Fix App Version getter * Fix commas * Check returned data * Update Build Script * Fix substring * Fix Git tag * Fix tag again * Visual indicators * Use encoding * Remove an indicator * Update CI * Update Project Name * PyInstaller Spec Template file * Update Build Script * Fix Tagger * Update CI * Download AppVersion during build * Test job can fail * Upload Logs instead of printing them * Change from Reusable Workflow to Action * Change ref to token * Compare to string * Use PAT * Use String literal * Remove Reusable Workflow * Update CI Scripts --------- Co-authored-by: Minnie A. Trethewey (Mike) <minnietrethewey@gmail.com>
This commit is contained in:
97
.github/actions/test/action.yml
vendored
Normal file
97
.github/actions/test/action.yml
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
name: ⏱️Test
|
||||
description: Test app
|
||||
inputs:
|
||||
os-name:
|
||||
required: true
|
||||
description: OS to run on
|
||||
python-version:
|
||||
required: true
|
||||
description: Python version to install
|
||||
|
||||
#########
|
||||
# actions
|
||||
#########
|
||||
# actions/checkout@v4.1.4
|
||||
# actions/download-artifact@v4.1.7
|
||||
# actions/upload-artifact@v4.3.3
|
||||
# coactions/setup-xvfb@v1.0.1
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# download pipline
|
||||
- name: 🔽Download PipLine
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🔽Download PipLine"
|
||||
- name: 🔽Download PipLine
|
||||
uses: actions/download-artifact@v4.1.7
|
||||
with:
|
||||
name: pipline-test-${{ inputs.os-name }}-py${{ inputs.python-version }}
|
||||
path: ./resources/user/meta/manifests
|
||||
|
||||
# run tests
|
||||
- name: 🖥️Test Base
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🖥️Test Base"
|
||||
- name: 🖥️Test Base
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p ./failures
|
||||
echo "" > ./failures/errors.txt
|
||||
python -m pip install tqdm
|
||||
python ./test/NewTestSuite.py
|
||||
# - name: 🖥️Test Mystery
|
||||
# shell: bash
|
||||
# run: |
|
||||
# echo "🖥️Test Mystery"
|
||||
# if: contains(inputs.os-name, 'macos')
|
||||
# - name: 🖥️Test Mystery
|
||||
# shell: bash
|
||||
# run: |
|
||||
# python ./test/MysteryTestSuite.py
|
||||
# if: contains(inputs.os-name, 'macos')
|
||||
|
||||
# upload logs
|
||||
- name: 🔼Upload Logs
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🔼Upload Logs"
|
||||
- name: 🔼Upload Logs
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: logs-${{ inputs.os-name }}-py${{ inputs.python-version }}
|
||||
path: ./logs
|
||||
if-no-files-found: ignore
|
||||
|
||||
# print failures
|
||||
- name: 💬Print Failures
|
||||
if: failure()
|
||||
shell: bash
|
||||
run: |
|
||||
echo "💬Print Failures"
|
||||
- name: Print Failures
|
||||
if: failure()
|
||||
shell: bash
|
||||
run: |
|
||||
ERR_STRING="$(cat ./failures/errors.txt)"
|
||||
ERR_STRING="${ERR_STRING//'%'/'%25'}"
|
||||
ERR_STRING="${ERR_STRING//$'\n'/' | '}"
|
||||
ERR_STRING="${ERR_STRING//$'\r'/' | '}"
|
||||
ERR_STRING="${ERR_STRING//$'\n'/'%0A'}"
|
||||
ERR_STRING="${ERR_STRING//$'\r'/'%0D'}"
|
||||
echo "::error ::$ERR_STRING"
|
||||
|
||||
# upload failures
|
||||
- name: 🔼Upload Failures
|
||||
if: failure()
|
||||
shell: bash
|
||||
run: |
|
||||
echo "🔼Upload Failures"
|
||||
- name: 🔼Upload Failures
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: failures-${{ inputs.os-name }}-py${{ inputs.python-version }}
|
||||
path: ./failures
|
||||
Reference in New Issue
Block a user