Skip to content

Commit

Permalink
remove pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 18, 2024
1 parent 5d9fb16 commit 0fcb402
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ dependencies:
- pip
- pytables
- python>=3.10
- pytest
- pytest-xdist
- scipy
- scikit-image
- pip:
- acstools
- asdf
- calcos
- ccdproc
- ci_watson
- costools
- crds
- drizzlepac
Expand Down

0 comments on commit 0fcb402

Please sign in to comment.