When tests are run locally, they succeed because an API Key and Secret are set up locally and then interactions with the Binance server are captured to VCR cassettes.
In Github Actions, this will not be possible to do securely, nor is practical even with github.SECRETS since a live account is needed.
Refactor these private tests to stub calls to the Binance servers and return expected responses.
The VCR cassettes are occasionally scrubbed and tested against the live server to ensure APIs are still working. Not sure what to do about this as it's essentially "poor man's" version of integration testing without a full-testing environment.
Would love some help (suggestions, feedback, or PR's) on this!
When tests are run locally, they succeed because an API Key and Secret are set up locally and then interactions with the Binance server are captured to VCR cassettes.
In Github Actions, this will not be possible to do securely, nor is practical even with
github.SECRETSsince a live account is needed.Refactor these private tests to stub calls to the Binance servers and return expected responses.
The VCR cassettes are occasionally scrubbed and tested against the live server to ensure APIs are still working. Not sure what to do about this as it's essentially "poor man's" version of integration testing without a full-testing environment.
Would love some help (suggestions, feedback, or PR's) on this!