Skip to content

Bump construct from 2.10.68 to 2.10.70 #392

Bump construct from 2.10.68 to 2.10.70

Bump construct from 2.10.68 to 2.10.70 #392

Workflow file for this run

name: Python Package
on:
pull_request:
push:
branches:
- main
- stable
tags:
- 'v*.*.*'
jobs:
pytest:
strategy:
fail-fast: false
matrix:
include:
# - os: 'ubuntu-latest'
# python: '3.11'
# name: 'Linux'
#
# - os: 'macos-latest'
# python: '3.11'
# name: 'macOS'
- os: 'windows-latest'
python: '3.11'
name: 'Windows'
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Set up cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python packages
run: |
python -m pip install --upgrade -r requirements-setuptools.txt
python -m pip install -r requirements.txt
python -m pip install -r requirements-pyinstaller.txt
- name: create executable
run: |
python -m PyInstaller dread_editor.spec
cd dist
7z a -mx=7 -myx=7 dread_editor_${{ matrix.name }}.7z dread_editor
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Dread Editor ${{ matrix.name }}
if-no-files-found: error
path: |
dist/dread_editor_${{ matrix.name }}.7z
- name: Upload binaries to release
uses: svenstaro/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/dread_editor_${{ matrix.name }}.7z
file_glob: true
tag: ${{ github.ref }}
overwrite: true
body: "Release executable"