Detection jax (WIP) #175
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: null | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| PY_COLORS: "1" | |
| jobs: | |
| tests: | |
| name: tests | |
| runs-on: "ubuntu-latest" | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: environment.yml | |
| environment-name: dfmdet | |
| - name: install code | |
| run: | | |
| pip install --no-deps --no-build-isolation -e . | |
| - name: test versions | |
| run: | | |
| pip uninstall deep-field-metadetect --yes | |
| [[ $(python setup.py --version) != "0.0.0" ]] || exit 1 | |
| rm -rf dist/* | |
| python setup.py sdist | |
| pip install -vv --no-deps --no-build-isolation dist/*.tar.gz | |
| cd .. | |
| python -c "import deep_field_metadetect; assert deep_field_metadetect.__version__ != '0.0.0'" | |
| cd - | |
| pip uninstall deep-field-metadetect --yes | |
| rm -rf dist/* | |
| python -m build --sdist . --outdir dist | |
| pip install --no-deps --no-build-isolation dist/*.tar.gz | |
| cd .. | |
| python -c "import deep_field_metadetect; assert deep_field_metadetect.__version__ != '0.0.0'" | |
| cd - | |
| pip uninstall deep-field-metadetect --yes | |
| python -m pip install -v --no-deps --no-build-isolation -e . | |
| - name: run pytest | |
| run: | | |
| export JAX_ENABLE_X64=True | |
| pytest \ | |
| -vvs \ | |
| --cov=deep_field_metadetect \ | |
| --cov=tests \ | |
| --cov-config=.coveragerc \ | |
| --cov-report=xml \ | |
| --cov-report=term-missing \ | |
| --durations 10 \ | |
| deep_field_metadetect | |
| - name: upload codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |