From 77150618b7b6d218dfaa4f135b662f0b5cf9cb75 Mon Sep 17 00:00:00 2001 From: Diego Marvid Date: Fri, 5 Jul 2024 14:03:18 -0300 Subject: [PATCH] add `.github/workflows` folder and use `Python3.9` --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ workflows/ci.yml | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..92f4beb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: 'Continous Integration' + +on: + push: + branches: + - 'feature/**' + - 'bug/**' + - 'develop' + - 'release/**' + - 'hotfix/**' + - 'main' + pull_request: + branches: [ develop, main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + make install + + - name: Run model tests + run: make model-test + + - name: Run API tests + run: make api-test \ No newline at end of file diff --git a/workflows/ci.yml b/workflows/ci.yml index a638b62..92f4beb 100644 --- a/workflows/ci.yml +++ b/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: '3.9' - name: Install dependencies run: |