(chore) Update package version to 0.4.1, update apparun version to 0.4.1 #134
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: Check code modifications integrity before adding them to the code | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| branches: | |
| - dev | |
| jobs: | |
| pre-commit: | |
| name: Pre-commit code inspection | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install pre-commit | |
| - name: Inspect source code | |
| run: pre-commit run --all-files | |
| tests: | |
| name: Run tests | |
| needs: pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: 'pip' | |
| - name: Install build and test dependencies | |
| run: pip install hatchling pytest | |
| - name: Build the wheel | |
| run: python -m hatchling build | |
| - name: Install the wheel | |
| run: pip install dist/*.whl --progress-bar off | |
| - name: Run smoke tests | |
| run: pytest tests/smoke | |
| - name: Run functional tests that don't need to use an EcoInvent database | |
| run: pytest tests/functional_no_db | |
| - name: Run functional tests whose use an EcoInvent database | |
| run: pytest tests/functional_db | |
| - name: Run end to end tests | |
| run: pytest tests/end_to_end |