diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 446c45093..366ed9e82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,21 +22,12 @@ jobs: run: | sudo apt-get update && sudo apt-get install -y libglpk-dev glpk-utils coinor-cbc python -m pip install --upgrade pip - pip install scikit-learn - pip install -r requirements.txt - - name: Install package - run: | - python setup.py install + pip install ".[develop]" - name: Create env file run: | touch .env # echo NREL_API_KEY=${{ secrets.NREL_API_KEY }} >> .env # cat .env - - name: Install test dependencies - run: | - pip install pytest - pip install pytest-subtests - pip install responses - name: Run tests run: | PYTHONPATH=. pytest tests diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml index 843ed5e44..5da98e7bf 100644 --- a/.github/workflows/publish_to_pypi.yml +++ b/.github/workflows/publish_to_pypi.yml @@ -22,5 +22,6 @@ jobs: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build + twine check --strict dist/* twine upload dist/* diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 3a5e0eb42..6210d47ee 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,7 +9,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.8" + python: "3.9" # You can also specify other tool versions: # nodejs: "19" # rust: "1.64" @@ -26,6 +26,8 @@ sphinx: # Optionally declare the Python requirements required to build your docs python: - install: - - requirements: requirements.txt - - requirements: requirements-dev.txt + install: + - method: pip + path: . + extra_requirements: + - develop