Output null for spdxid and name when not present (#23) #43
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: Python CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up poetry | |
run: | | |
python -m pip install poetry==1.5.1 | |
poetry config virtualenvs.create false | |
- name: Install dependencies | |
run: poetry install | |
- name: Check formatting | |
run: black --check . | |
- name: Lint with flake8 | |
run: flake8 . | |
- name: Test with pytest | |
run: pytest -s | |
- name: Build | |
run: poetry build | |
- name: Push build artifacts to GitHub | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifacts | |
path: dist/ |