conda-forge / conda-smithy

The tool for managing conda-forge feedstocks.
https://conda-forge.org/
BSD 3-Clause "New" or "Revised" License
149 stars 176 forks source link

test: skip test that relies on GH_TOKEN if that is not set #1954

Closed janl closed 3 months ago

janl commented 3 months ago

https://github.com/conda-forge/conda-smithy/commit/22a8a1dabcf81811efcf16db77563f2aeb5e1355#diff-509ad066722190140fc233360c53d9cc0e274542fe73d5a74ac76cb4dd2cc9e1R1775 introduced a new test function that calls code that relies on GH_TOKEN to be set and valid. The test fails when not run in GitHub actions. This PR adds the appropriate skipUnless() decorator. This fixes local test runs.

This is part of the STF work for Conda.