Skip to content

.

. #34

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build-Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
environment: NREL-API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up uv
uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: |
uv sync --extra dev
- name: Lint with ruff
run: |
uv run ruff check .
- name: Test with pytest
env:
APIKEY: ${{ secrets.APIKEY }}
run: |
uv run pytest