Clarification Changes #4
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: PR Tests and Build | |
on: | |
pull_request: | |
branches: | |
- development # Uses development branch | |
jobs: | |
test-and-build: | |
name: Run Tests and Build | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
# Set up Python | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 # Use version 3.8 | |
# Install dependencies | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
# Run tests | |
- name: Run Tests | |
run: | | |
poetry run pytest tests | |
# Build the project | |
- name: Build Project | |
run: | | |
poetry build |