Add gh-action to create a release on v*.*.* tags #22
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: cicd_docker | |
on: | |
# Run tests for non-draft pull request on main | |
pull_request: | |
branches: | |
- main | |
env: | |
DOCKER_IMAGE_NAME: pdal_ign_plugin | |
jobs: | |
build_docker_image_and_run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Build docker image | |
run: docker build -t ${{ env.DOCKER_IMAGE_NAME }}:test . | |
- name: Run tests in docker image | |
run: docker run ${{ env.DOCKER_IMAGE_NAME }}:test python -m pytest | |