mock out http requests #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
# branches: [ "master" ] | |
pull_request: | |
# branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt install -y bats python3 | |
- name: Test with Bats | |
shell: 'script -q -e -c "bash {0}"' # work around tty issues | |
env: | |
TERM: linux # fix tput for tty issue work around | |
run: | | |
cd tests | |
python3 -m http.server --bind 127.0.0.1 --directory ${GITHUB_WORKSPACE}/tests/mock & | |
sleep 1 # wait for server start | |
export BASE_URL="http://127.0.0.1:8000" | |
bats -t . |