Add temporary test change #13
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: Build and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_call: | |
inputs: | |
working-directory: | |
type: string | |
default: '.' # Default to the root directory | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Pytest | |
run: pip install pytest | |
- name: Verify Makefile presence | |
working-directory: ${{ inputs.working-directory }} | |
run: ls -la # List contents to confirm Makefile location | |
- name: Build project | |
working-directory: ${{ inputs.working-directory || '.' }} | |
run: | | |
pwd | |
ls -la | |
make | |
- name: Run tests | |
working-directory: ${{ inputs.working-directory || '.' }}/src/test | |
run: pytest |