From 218079956f4c721115e4778f0cea4b970dbde678 Mon Sep 17 00:00:00 2001 From: Charles Stern <62192187+cisaacstern@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:55:17 -0700 Subject: [PATCH] remove old unit tests and ci envs --- .dockerignore | 1 - .github/workflows/unit-test.yaml | 58 -------------------------------- ci/envs/py3.10-ecoscope1.8.2.yml | 11 ------ ci/envs/py3.11-ecoscope1.8.2.yml | 11 ------ ci/envs/py3.12-ecoscope1.8.2.yml | 11 ------ 5 files changed, 92 deletions(-) delete mode 100644 .github/workflows/unit-test.yaml delete mode 100644 ci/envs/py3.10-ecoscope1.8.2.yml delete mode 100644 ci/envs/py3.11-ecoscope1.8.2.yml delete mode 100644 ci/envs/py3.12-ecoscope1.8.2.yml diff --git a/.dockerignore b/.dockerignore index 310787ab6..5d3e41951 100644 --- a/.dockerignore +++ b/.dockerignore @@ -11,7 +11,6 @@ .readthedocs.yml .ruff_cache .vscode -ci docker LICENSE README.md diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml deleted file mode 100644 index 0e704d204..000000000 --- a/.github/workflows/unit-test.yaml +++ /dev/null @@ -1,58 +0,0 @@ -name: Unit Tests - -on: - push: - branches: ["main"] - pull_request: - branches: ["*"] - -jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - environment-name: [ - "py3.10-ecoscope1.8.2", - "py3.11-ecoscope1.8.2", - "py3.12-ecoscope1.8.2", - ] - - steps: - - uses: actions/checkout@v4 - - name: Setup Micromamba - uses: mamba-org/setup-micromamba@v1 - with: - environment-file: ./ci/envs/${{ matrix.environment-name }}.yml - cache-environment: true - cache-downloads: true - init-shell: bash - - - name: Install pip dependencies and our package - shell: bash -leo pipefail {0} - run: | - python -m pip install -U pip - python -m pip install -e ".[test,lithops,ecoscope-core-tasks]" --config-settings editable_mode=compat - - - name: Run doctests - shell: bash -leo pipefail {0} - run: | - python -m pytest -v ecoscope_workflows/ --doctest-modules \ - --ignore=ecoscope_workflows/visualize.py - - - name: Export shell name and conda env name to env - run: | - echo 'SHELL="bash -leo pipefail"' >> $GITHUB_ENV - echo "CONDA_ENV_NAME=${{ matrix.environment-name }}" >> $GITHUB_ENV - - - name: Test with pytest - env: - EARTHRANGER_SERVER: ${{ secrets.EARTHRANGER_SERVER }} - EARTHRANGER_USERNAME: ${{ secrets.EARTHRANGER_USERNAME }} - EARTHRANGER_PASSWORD: ${{ secrets.EARTHRANGER_PASSWORD }} - shell: bash -leo pipefail {0} - run: | # FIXME: run IO tests separately since they require credentials which could expire and fail the tests - python -m pytest -m "not io" tests -vvv - - # - name: Upload Coverage to Codecov - # uses: codecov/codecov-action@v2 diff --git a/ci/envs/py3.10-ecoscope1.8.2.yml b/ci/envs/py3.10-ecoscope1.8.2.yml deleted file mode 100644 index 58f0b0a03..000000000 --- a/ci/envs/py3.10-ecoscope1.8.2.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: py3.10-ecoscope1.8.2 -channels: - - conda-forge -dependencies: - - python==3.10.12 - - geopandas<=0.14.2 - - git - - numpy<2 - - pip - - pip: - - ecoscope[analysis,mapping,plotting] @ git+https://github.com/wildlife-dynamics/ecoscope@v1.8.2 diff --git a/ci/envs/py3.11-ecoscope1.8.2.yml b/ci/envs/py3.11-ecoscope1.8.2.yml deleted file mode 100644 index 090f1da8a..000000000 --- a/ci/envs/py3.11-ecoscope1.8.2.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: py3.11-ecoscope1.8.2 -channels: - - conda-forge -dependencies: - - python=3.11 - - geopandas<=0.14.2 - - git - - numpy<2 - - pip - - pip: - - ecoscope[analysis,mapping,plotting] @ git+https://github.com/wildlife-dynamics/ecoscope@v1.8.2 diff --git a/ci/envs/py3.12-ecoscope1.8.2.yml b/ci/envs/py3.12-ecoscope1.8.2.yml deleted file mode 100644 index 8cf7ee530..000000000 --- a/ci/envs/py3.12-ecoscope1.8.2.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: py3.12-ecoscope1.8.2 -channels: - - conda-forge -dependencies: - - python=3.12 - - geopandas<=0.14.2 - - git - - numpy<2 - - pip - - pip: - - ecoscope[analysis,mapping,plotting] @ git+https://github.com/wildlife-dynamics/ecoscope@v1.8.2