Merge pull request #13 from scanoss/SP-2667/chore/update-windows-runners #91
This file contains hidden or 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: Build/Test Local Python Package | |
| # This workflow will build and test the python package locally | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10.x' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| - name: Build Local Package | |
| run: make dist | |
| - name: Install Test Package | |
| run: | | |
| pip install -r requirements.txt | |
| pip install dist/scanoss*.whl | |
| - name: Run Tests | |
| run: python -m unittest tests/winnowing-test.py |