From 0fcb402454aed1758463b51964f4e2214c1145d3 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Tue, 18 Jun 2024 08:37:17 -0400 Subject: [PATCH] remove pytest --- .github/workflows/build.yaml | 3 ++- .github/workflows/test.yaml | 3 +++ environment.yaml | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8710bc9..b18d4fb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -51,7 +51,6 @@ jobs: cache-environment-key: environment-${{ needs.date.outputs.date }} init-shell: none generate-run-shell: true - - run: pytest -n auto tests/test_import.py - run: echo "filename=stenv-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ needs.date.outputs.date }}.yaml" >> $GITHUB_OUTPUT id: output - run: | @@ -60,6 +59,8 @@ jobs: python tools/mamba_export_pip.py ${{ steps.output.outputs.filename }} pip_requirements.txt > mamba_packages.yml mv mamba_packages.yml ${{ steps.output.outputs.filename }} cat ${{ steps.output.outputs.filename }} + - run: pip install pytest pytest-xdist + - run: pytest -n auto tests/test_import.py - uses: actions/upload-artifact@v4 with: name: ${{ steps.output.outputs.filename }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1a355d3..43cecb9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -160,6 +160,7 @@ jobs: generate-run-shell: true - if: matrix.extras != '' run: pip install "${{ matrix.package }}[${{ join(matrix.extras, ',') }}]" + - run: pip install pytest-xdist - run: | micromamba env export --no-build | grep -v "name:" | grep -v "prefix:" pip freeze @@ -239,6 +240,7 @@ jobs: - if: matrix.extras != '' run: pip install -e ".[${{ join(matrix.extras, ',') }}]" working-directory: ${{ matrix.package }} + - run: pip install pytest-xdist - run: | micromamba env export --no-build | grep -v "name:" | grep -v "prefix:" pip freeze @@ -380,6 +382,7 @@ jobs: generate-run-shell: true - if: matrix.extras != '' run: pip install ".[${{ join(matrix.extras, ',') }}]" + - run: pip install pytest-xdist - run: | micromamba env export --no-build | grep -v "name:" | grep -v "prefix:" pip freeze diff --git a/environment.yaml b/environment.yaml index 0f428a3..6ecedcc 100644 --- a/environment.yaml +++ b/environment.yaml @@ -16,8 +16,6 @@ dependencies: - pip - pytables - python>=3.10 - - pytest - - pytest-xdist - scipy - scikit-image - pip: @@ -25,7 +23,6 @@ dependencies: - asdf - calcos - ccdproc - - ci_watson - costools - crds - drizzlepac