License expressions #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Check licenses | |
run: | | |
make check_license_files | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
cd python | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
- name: Check reuse | |
run: | | |
make clean | |
reuse --suppress-deprecation lint | |
- 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 | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
# 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' | |
- name: Reuse check | |
run: | | |
reuse lint |