Skip to content

Commit

Permalink
update Actions and RTD workflows for new installation method
Browse files Browse the repository at this point in the history
  • Loading branch information
RHammond2 committed Oct 15, 2024
1 parent 6e58b25 commit 2b10ebb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
10 changes: 6 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 2b10ebb

Please sign in to comment.