feature/pdct-1540-set-all-metadata-entries-to-a-string-type #137
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
name: CI/CD | |
on: | |
push: | |
tags: [v*] | |
branches: | |
- main | |
pull_request: | |
# By default, a workflow only runs when a pull_request event's activity type is opened, | |
# synchronize, or reopened. | |
types: [opened, synchronize, reopened, edited] | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
code-quality: | |
uses: climatepolicyradar/reusable-workflows/.github/workflows/python-precommit-validator-without-version.yml@v13 | |
with: | |
python-version: "3.10" | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install latest Docker Compose | |
uses: ndeloof/[email protected] | |
with: | |
legacy: false | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install "poetry==1.7.1" | |
poetry config virtualenvs.prefer-active-python true | |
poetry config virtualenvs.create true | |
poetry install --only-root | |
poetry install --with dev --no-cache | |
- name: Export PYTHONPATH | |
run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV | |
- name: Run Tests | |
run: poetry run pytest -vvv tests/unit_tests |