Skip to content

Commit

Permalink
stop using setup.py directly
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed May 23, 2024
1 parent e1a9614 commit 5e0125b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
-e "GITHUB_TOKEN=$GITHUB_TOKEN"
"${BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}-python${{ matrix.python_version }}"
bash -c "
python setup.py sdist &&
coverage run --omit=nansat/mappers/*,nansat/tests/*,nansat/nansatmap.py --source=nansat setup.py test"
pip install -e /src &&
coverage run --omit=nansat/mappers/*,nansat/tests/*,nansat/nansatmap.py --source=nansat -m unittest discover nansat.tests"
- name: 'Install Python 3.11'
if: ${{ env.latest }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
fetch-depth: 0

- name: Build package
run: docker run --rm -v "$(pwd):/src" "$BASE_IMAGE_NAME" python setup.py sdist
run: docker run --rm -v "$(pwd):/src" "$BASE_IMAGE_NAME" python -m build -s
shell: bash

- name: Publish
Expand Down

0 comments on commit 5e0125b

Please sign in to comment.