Skip to content

Use common action flow #415

Use common action flow

Use common action flow #415

Workflow file for this run

# Running tests with tox for releasing new version
name: Pull requests fosslight_prechecker
on:
pull_request:
branches:
- '*'
jobs:
check-commit-message:
name: Check Commit Message
uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main
secrets:
envPAT: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest

Check failure on line 16 in .github/workflows/pull-request.yml

View workflow run for this annotation

GitHub Actions / Pull requests fosslight_prechecker

Invalid workflow file

The workflow is not valid. .github/workflows/pull-request.yml (Line: 16, Col: 5): Unexpected value 'runs-on'
build:
name: Build packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
TARGET: ubuntu
CMD_BUILD: >
tox -e ubuntu
OUT_FILE_NAME: fosslight_bin_ubuntu18
ASSET_MIME: application/octet-stream
- os: windows-latest
TARGET: windows
CMD_BUILD: |
tox -e windows
pyinstaller --onefile cli.py -n cli --additional-hooks-dir=hooks --collect-datas reuse --collect-datas fosslight_util --add-data="src\fosslight_prechecker\templates\default_template.jinja2;." &&
move dist/cli.exe fosslight_prechecker_windows.exe &&
./fosslight_prechecker_windows.exe
OUT_FILE_NAME: fosslight_prechecker_windows.exe
ASSET_MIME: application/vnd.microsoft.portable-executable
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -r requirements-dev.txt
pip install pyinstaller
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1