From bc5550a2e626de8bc8fc71e54858ea9b1e41cde0 Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Tue, 27 Feb 2024 17:24:35 +0100 Subject: [PATCH] New CICD workflow --- .github/workflows/CI-build-test.yml | 15 +++++++++++++++ .github/workflows/CICD-pr.yml | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/CICD-pr.yml diff --git a/.github/workflows/CI-build-test.yml b/.github/workflows/CI-build-test.yml index 293441a..c4ab3a6 100644 --- a/.github/workflows/CI-build-test.yml +++ b/.github/workflows/CI-build-test.yml @@ -9,3 +9,18 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 + + - name: Use Python + uses: actions/setup-python@v4 + with: + python-version: '3.11.6' + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Test with pytest + run: | + coverage run -m pytest -s && coverage report --show-missing diff --git a/.github/workflows/CICD-pr.yml b/.github/workflows/CICD-pr.yml new file mode 100644 index 0000000..9f91440 --- /dev/null +++ b/.github/workflows/CICD-pr.yml @@ -0,0 +1,8 @@ +name: Vision CI/CD Pull Request + +on: + pull_request: + +jobs: + build-and-test: + uses: ./.github/workflows/CI-build-test.yml