From 6ca8db1391ae9190a3f572f9ae4e71d32485ec2b Mon Sep 17 00:00:00 2001 From: Spiros Maggioros Date: Mon, 2 Sep 2024 17:36:07 +0300 Subject: [PATCH] Remove conda environments and add only pytest --- .github/workflows/macos-tests-3.10.yml | 10 ---------- .github/workflows/macos-tests-3.11.yml | 10 ---------- .github/workflows/macos-tests-3.12.yml | 10 ---------- .github/workflows/macos-tests-3.8.yml | 10 ---------- .github/workflows/macos-tests-3.9.yml | 10 ---------- .github/workflows/ubuntu-tests-3.10.yml | 12 +----------- .github/workflows/ubuntu-tests-3.11.yml | 12 +----------- .github/workflows/ubuntu-tests-3.12.yml | 12 +----------- .github/workflows/ubuntu-tests-3.8.yml | 12 +----------- .github/workflows/ubuntu-tests-3.9.yml | 12 +----------- 10 files changed, 5 insertions(+), 105 deletions(-) diff --git a/.github/workflows/macos-tests-3.10.yml b/.github/workflows/macos-tests-3.10.yml index 70d2557..f2b362b 100644 --- a/.github/workflows/macos-tests-3.10.yml +++ b/.github/workflows/macos-tests-3.10.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.10" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.10 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.10 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge diff --git a/.github/workflows/macos-tests-3.11.yml b/.github/workflows/macos-tests-3.11.yml index e897239..6e263f6 100644 --- a/.github/workflows/macos-tests-3.11.yml +++ b/.github/workflows/macos-tests-3.11.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.11" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.11 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.11 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge diff --git a/.github/workflows/macos-tests-3.12.yml b/.github/workflows/macos-tests-3.12.yml index 5fa18b8..5c5db75 100644 --- a/.github/workflows/macos-tests-3.12.yml +++ b/.github/workflows/macos-tests-3.12.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.12 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.12 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge diff --git a/.github/workflows/macos-tests-3.8.yml b/.github/workflows/macos-tests-3.8.yml index 6c2eb7c..b90ad11 100644 --- a/.github/workflows/macos-tests-3.8.yml +++ b/.github/workflows/macos-tests-3.8.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.8" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.8 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.8 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge diff --git a/.github/workflows/macos-tests-3.9.yml b/.github/workflows/macos-tests-3.9.yml index efa5a65..9e392d8 100644 --- a/.github/workflows/macos-tests-3.9.yml +++ b/.github/workflows/macos-tests-3.9.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.9" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.9 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.9 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge diff --git a/.github/workflows/ubuntu-tests-3.10.yml b/.github/workflows/ubuntu-tests-3.10.yml index 9e313a3..e633a42 100644 --- a/.github/workflows/ubuntu-tests-3.10.yml +++ b/.github/workflows/ubuntu-tests-3.10.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.10" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.10 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.10 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge @@ -34,4 +24,4 @@ jobs: run: pip install setuptools && pip install . - name: Run unit tests run: | - cd tests/unit && python -m unittest discover -s . -p "*.py" + cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/ubuntu-tests-3.11.yml b/.github/workflows/ubuntu-tests-3.11.yml index 2daf4f2..8156691 100644 --- a/.github/workflows/ubuntu-tests-3.11.yml +++ b/.github/workflows/ubuntu-tests-3.11.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.11" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.11 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.11 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge @@ -34,4 +24,4 @@ jobs: run: pip install setuptools && pip install . - name: Run unit tests run: | - cd tests/unit && python -m unittest discover -s . -p "*.py" + cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/ubuntu-tests-3.12.yml b/.github/workflows/ubuntu-tests-3.12.yml index 9c90ced..038f30d 100644 --- a/.github/workflows/ubuntu-tests-3.12.yml +++ b/.github/workflows/ubuntu-tests-3.12.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.12" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.12 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.12 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge @@ -31,4 +21,4 @@ jobs: run: pip install setuptools && pip install . - name: Run unit tests run: | - cd tests/unit && python -m unittest discover -s . -p "*.py" + cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/ubuntu-tests-3.8.yml b/.github/workflows/ubuntu-tests-3.8.yml index 58fa623..94d8070 100644 --- a/.github/workflows/ubuntu-tests-3.8.yml +++ b/.github/workflows/ubuntu-tests-3.8.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.8" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.8 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.8 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge @@ -34,4 +24,4 @@ jobs: run: pip install setuptools && pip install . - name: Run unit tests run: | - cd tests/unit && python -m unittest discover -s . -p "*.py" + cd tests/unit && pytest --cov=../../ diff --git a/.github/workflows/ubuntu-tests-3.9.yml b/.github/workflows/ubuntu-tests-3.9.yml index f774981..72f475e 100644 --- a/.github/workflows/ubuntu-tests-3.9.yml +++ b/.github/workflows/ubuntu-tests-3.9.yml @@ -12,16 +12,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: "3.9" - - name: Set-up miniconda for macos and ubuntu - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - python-version: 3.9 - miniconda-version: "latest" - - name: Create conda env - run: conda create -n spare python=3.9 - - name: Install pip - run: conda run -n spare conda install pip - name: Install spare scores run: | python -m pip cache purge @@ -34,4 +24,4 @@ jobs: run: pip install setuptools && pip install . - name: Run unit tests run: | - cd tests/unit && python -m unittest discover -s . -p "*.py" + cd tests/unit && pytest --cov=../../