Skip to content

Commit

Permalink
Refactor out test requirements
Browse files Browse the repository at this point in the history
Move requirements just used for testing into a separate requirements
file used on CI. This way we don't need to install these in the Heroku
container or have them in the webservice, which should lighten up the
memory usage on Heroku.
  • Loading branch information
jakirkham committed Apr 2, 2024
1 parent 1ef34fc commit 8ad26b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clean-and-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
conda config --set show_channel_urls True
conda config --add channels conda-forge
conda install --yes --quiet --file conda-requirements.txt
conda install --yes --quiet --file conda-requirements.txt --file conda-test-requirements.txt
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
mkdir -p ~/.conda-smithy/ && echo $GH_TOKEN > ~/.conda-smithy/github.token
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
conda config --set show_channel_urls True
conda config --add channels conda-forge
conda install --yes --quiet --file conda-requirements.txt
conda install --yes --quiet --file conda-requirements.txt --file conda-test-requirements.txt
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
mkdir -p ~/.conda-smithy/ && echo $GH_TOKEN > ~/.conda-smithy/github.token
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
run: |
conda config --set show_channel_urls True
conda config --add channels conda-forge
conda install --yes --quiet --file conda-requirements.txt
conda install --yes --quiet --file conda-requirements.txt --file conda-test-requirements.txt
git config --global user.email "79913779+conda-forge-curator[bot]@users.noreply.github.com"
git config --global user.name "conda-forge-curator[bot]"
git config --global pull.rebase false
Expand Down
1 change: 0 additions & 1 deletion conda-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ lxml
mock
parameterized
pygithub>=2.2.0 # for GH App endpoints
pytest
python=3.10.*
pytz
pyyaml
Expand Down
1 change: 1 addition & 0 deletions conda-test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest

0 comments on commit 8ad26b4

Please sign in to comment.