Skip to content

Commit

Permalink
fix circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
harryhare committed Jul 12, 2021
1 parent e290e71 commit 38cbe6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: dependencies
command: |
apt-get update
apt-get -y install python3 python3-pip tesseract-ocr
apt-get -y install python3 python3-pip python3-venv tesseract-ocr
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/get_credit_ubuntu_flaresolverr.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 目前 只有第一次能跑成功
name: 'get credit with flaresolverr'

on:
Expand All @@ -11,7 +12,8 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v2
- name: docker test 1

- name: start flaresolverr
run: |
docker run -d \
--name=flaresolverr \
Expand All @@ -20,7 +22,7 @@ jobs:
--restart unless-stopped \
ghcr.io/flaresolverr/flaresolverr:latest
- name: docker test 2
- name: curl flaresolverr
run: |
sleep 30
curl -L -X POST 'http://localhost:8191/v1' \
Expand All @@ -35,13 +37,13 @@ jobs:
}
}' > flaresolverr.json
- name: docker test
- name: stop flaresolverr
run: |
docker ps
docker stop flaresolverr
# for debug
- name: upload artifact
- name: upload flaresolverr.json
uses: actions/upload-artifact@v2
with:
name: "flaresolverr.json"
Expand Down

0 comments on commit 38cbe6b

Please sign in to comment.