added test data to dockerfile #18
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: Python Application CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v4 | |
# Set up Docker | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v2 | |
# Build the Docker image | |
- name: Build Docker Image | |
run: | | |
docker build -t plugin-cmv . | |
# Install pytest and Run Tests | |
- name: Run Tests | |
run: | | |
docker run --rm --entrypoint sh plugin-cmv -c " | |
pip install pytest && | |
pytest /app/test_app.py | |
" | |