Skip to content

Fix ci for local workflow calls #11

Fix ci for local workflow calls

Fix ci for local workflow calls #11

Workflow file for this run

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: Build project
working-directory: ${{ inputs.working-directory || '.' }}
run: make
- name: Run tests
working-directory: ${{ inputs.working-directory || '.' }}/src/test
run: pytest