4 build automation #30
Workflow file for this run
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
# SPDX-FileCopyrightText: 2024 German Aerospace Center (DLR) | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
# SPDX-FileContributor: Michael Meinel | |
# SPDX-FileContributor: Michael Fritzsche | |
name: Python application | |
on: | |
[push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install -e .[dev] | |
- name: Test with pytest | |
run: | | |
pytest --cov=src test/hermes_toml_test --cov-fail-under=90 |