Unnecessary env in Action steps
jenstroeger opened this issue · 2 comments
I think these environment variables:
python-package-template/.github/workflows/build.yaml
Lines 35 to 36 in 66347c6
python-package-template/.github/workflows/codeql-analysis.yaml
Lines 51 to 52 in 66347c6
aren’t necessary because make setup
assumes a venv. The PYTHON
environment variable is used only by the make venv
goal to pick the Python for the virtual environment:
python-package-template/Makefile
Lines 29 to 42 in 66347c6
Also, I think if we replace this
python-package-template/.github/workflows/build.yaml
Lines 37 to 43 in 66347c6
with
# We don't need to check and test the package separately
# because `make dist` runs those targets first and only
# builds the package if they succeed.
- name: Build the package artifacts and documentation
run: make dist docs
then the tests will run only once because make
resolves the common check test
dependency of the dist
and doc
goals. And actually, make all
should do:
python-package-template/Makefile
Lines 74 to 76 in 2875471