Skip to content

Fix misc bugs

Fix misc bugs #152

Workflow file for this run

name: Push test pipeline
on:
push:
branches:
- "master"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Check licenses
run: |
make check_license_files
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Reuse check
run: |
python3 -m pip install --upgrade pip
python3 -m pip install reuse
reuse --suppress-deprecation lint
- name: Install dependencies
run: |
#python3 -m pip install --upgrade pip
cd python
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build
run: cd python && python3 setup.py build sdist
- name: Lint
run: |
cd python
flake8
- name: Install
run: cd python && python3 setup.py install
- name: Test
run: |
JUNIT_REPORT=1 python3 -m pytest
make check_license_schema
- name: CLI check
run: |
flame -h
flame license BSD3
flame compat BSD3
flame licenses
flame operators
flame compats
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
# always run even if the previous step fails but only for the main repo
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository }}
with:
report_paths: '**/TEST-*.xml'