update measure for alfalfa 1.0 #115
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: Integration | |
| on: | |
| push: | |
| branches: | |
| - "develop" | |
| pull_request: | |
| repository_dispatch: | |
| types: [alfalfa-update] | |
| jobs: | |
| integration: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install poetry | |
| uses: abatilo/actions-poetry@v4.0.0 | |
| with: | |
| poetry-version: "2.1.1" | |
| - name: Start Alfalfa | |
| uses: NREL/alfalfa-action@v1 | |
| with: | |
| tag: "develop" | |
| compose-file-ref: "develop" | |
| worker-scale: 2 | |
| - name: Wait for web API | |
| uses: iFaxity/wait-on-action@v1.2.1 | |
| with: | |
| resource: http://localhost | |
| - name: Run tests with poetry and pytest | |
| run: | | |
| poetry install | |
| poetry run pytest -m integration |