Skip to content

Commit

Permalink
Use pypa/build instead of setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
figi44 committed Nov 24, 2023
1 parent 1c613d9 commit 29b3446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ runs:
if [ -n "${{ inputs.conda_install }}" ]; then
conda install -y ${{ inputs.conda_install }}
fi
pip install pytest pytest-cov
pip install pytest pytest-cov build
if [ -f ${{ inputs.requirements_path }} ]; then
pip install -r ${{ inputs.requirements_path }}
fi
Expand All @@ -92,7 +92,7 @@ runs:
git remote add origin https://${{ inputs.github_token }}@github.com/$owner/$repo.git
git fetch --depth 1 origin $ref
git checkout FETCH_HEAD
python setup.py sdist
python -m build --sdist
pip install dist/*
done <<< "${{ inputs.python_dependencies }}"
Expand All @@ -101,7 +101,7 @@ runs:
run: |
source /opt/conda/etc/profile.d/conda.sh
conda activate $RUNNER_TEMP/venv
python setup.py sdist
python -m build --sdist
pip install dist/*
- name: Run tests
Expand Down

0 comments on commit 29b3446

Please sign in to comment.