Update Konflux references #136
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: Run tests | |
on: | |
push: | |
branches: ["development", "main"] | |
pull_request: | |
branches: ["development", "main"] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python3 -m ensurepip --upgrade | |
pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt | |
- name: Lint with pre-commit hook | |
run: | | |
pre-commit run --all-files --show-diff-on-failure | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python3 -m ensurepip --upgrade | |
pip install --no-cache-dir -r requirements.txt -r requirements-dev.txt | |
- name: Test with pytest | |
run: | | |
pytest tests |