Merge pull request #64 from NREL/boptest_alignment #98
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: 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@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: "1.3.1" | |
- name: Start Alfalfa | |
uses: NREL/alfalfa-action@v1 | |
with: | |
tag: "develop" | |
compose-file-ref: "develop" | |
worker-scale: 2 | |
- name: Run tests with poetry and pytest | |
run: | | |
poetry install | |
poetry run pytest -m integration |