chore: refactor configs #906
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: Unit Test | |
on: | |
pull_request: | |
branches: | |
- "main" | |
- "release-**" | |
paths-ignore: | |
- "docs/**" | |
- "**.md" | |
- "doc_indexer/**" | |
- CODEOWNERS | |
- LICENSE | |
## **IMPORTANT**: If any changes are made to how to run the unit tests. Make sure to update the steps for unit-tests | |
## in the create-release.yml workflow as well. | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Extract Python version | |
id: python-version | |
run: ./scripts/shell/extract-python-version.sh | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Create config.json | |
run: | | |
mkdir -p config | |
echo '{"mock-key": "mock-value"}' > config/config.json | |
- name: Run tests | |
run: poetry run poe test |