From a61f87e8a0282bb2e0d8050ba6b699bec89693e7 Mon Sep 17 00:00:00 2001 From: Elton Cardoso do Nascimento <43186596+EltonCN@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:02:15 -0300 Subject: [PATCH] Test pipeline configuration --- .github/workflows/pipeline-windows.yml | 33 ------------------- .../{pipeline-ubuntu.yml => test.yml} | 13 ++++---- 2 files changed, 6 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/pipeline-windows.yml rename .github/workflows/{pipeline-ubuntu.yml => test.yml} (72%) diff --git a/.github/workflows/pipeline-windows.yml b/.github/workflows/pipeline-windows.yml deleted file mode 100644 index 253feaa..0000000 --- a/.github/workflows/pipeline-windows.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: evolvepy CI/CD -on: - push: - branches: [ develop, main ] - pull_request: - branches: [ develop, main ] - -jobs: - build: - - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8", "3.9", "3.10"] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install pytest - if [ -f setup.cfg ]; then python3 -m pip install . ; fi - - - name: Test with pytest - run: | - cd ./test - pytest - shell: bash \ No newline at end of file diff --git a/.github/workflows/pipeline-ubuntu.yml b/.github/workflows/test.yml similarity index 72% rename from .github/workflows/pipeline-ubuntu.yml rename to .github/workflows/test.yml index c353c6a..6821505 100644 --- a/.github/workflows/pipeline-ubuntu.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: evolvepy CI/CD +name: Test on: push: branches: [ develop, main ] @@ -8,27 +8,26 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.8", "3.9"] + os: [ubuntu-latest, windows-latest] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies run: | python3 -m pip install --upgrade pip python3 -m pip install pytest - if [ -f setup.cfg ]; then python3 -m pip install . ; fi + python3 -m pip install .[tests] - - name: Test with pytest + - name: Tests run: | pytest shell: bash \ No newline at end of file