Skip to content

Commit

Permalink
Life is pain
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed May 14, 2024
1 parent 248ce6e commit f32e36e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 13 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,29 @@ jobs:
checks:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# - uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.12
# cache: pip

- name: Install dependencies
- name: Set the value
id: step_one
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
echo $env:GITHUB_ENV
echo "action_state=yellow" >> "$env:GITHUB_ENV"
- name: Use the value
id: step_two
run: |
python runtests.py -vv --full-trace
echo $env:GITHUB_ENV
echo $env:action_state
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt

# - name: Test with pytest
# run: |
# python runtests.py -vv --full-trace
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,18 @@ jobs:
Write-Host $WINDOWS_MSI_NAME
echo "WINDOWS_MSI=$WINDOWS_MSI" >> "$GITHUB_ENV"
echo "WINDOWS_MSI_NAME=$WINDOWS_MSI_NAME" >> "$GITHUB_ENV"
echo "action_state=yellow" >> "$GITHUB_OUTPUT"
- name: Calculate checksum
id: checksum
env:
action_color: $ {{ steps.artifacts_paths.outputs.action_state }}
run: |
$MSI_SUM = $(CertUtil -hashfile "$WINDOWS_MSI" SHA256)[1] -replace " ",""
Write-Host MSI path is: $WINDOWS_MSI
echo $action_color
Write-Host $action_color
echo $WINDOWS_MSI
$MSI_SUM = $(CertUtil -hashfile $WINDOWS_MSI SHA256)[1] -replace " ",""
Write-Host $MSI_SUM
echo "MSI_SUM=$MSI_SUM" >> "GITHUB_ENV"
Expand Down

0 comments on commit f32e36e

Please sign in to comment.