mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-02 11:10:21 +00:00
commit
8aeac2d862
4
.github/workflows/build-docker.yml
vendored
4
.github/workflows/build-docker.yml
vendored
|
@ -8,11 +8,9 @@ on:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
|
||||||
uses: ./.github/workflows/run-tests.yml
|
|
||||||
build-docker-amd64:
|
build-docker-amd64:
|
||||||
needs: [tests]
|
needs: [tests]
|
||||||
runs-on: buildjet-2vcpu-ubuntu-2204
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
56
.github/workflows/run-tests.yml
vendored
56
.github/workflows/run-tests.yml
vendored
|
@ -1,56 +0,0 @@
|
||||||
name: Tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- "*.md"
|
|
||||||
branches-ignore:
|
|
||||||
- master
|
|
||||||
workflow_call:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: buildjet-2vcpu-ubuntu-2204
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
nim:
|
|
||||||
- "1.6.10"
|
|
||||||
- "1.6.x"
|
|
||||||
- "2.0.x"
|
|
||||||
- "devel"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Cache nimble
|
|
||||||
id: cache-nimble
|
|
||||||
uses: buildjet/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.nimble
|
|
||||||
key: ${{ matrix.nim }}-nimble-${{ hashFiles('*.nimble') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ matrix.nim }}-nimble-
|
|
||||||
- uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: "3.10"
|
|
||||||
cache: "pip"
|
|
||||||
- uses: jiro4989/setup-nim-action@v1
|
|
||||||
with:
|
|
||||||
nim-version: ${{ matrix.nim }}
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- run: nimble build -d:release -Y
|
|
||||||
- run: pip install seleniumbase
|
|
||||||
- run: seleniumbase install chromedriver
|
|
||||||
- uses: supercharge/redis-github-action@1.5.0
|
|
||||||
- name: Prepare Nitter
|
|
||||||
run: |
|
|
||||||
sudo apt install libsass-dev -y
|
|
||||||
cp nitter.example.conf nitter.conf
|
|
||||||
sed -i 's/enableDebug = false/enableDebug = true/g' nitter.conf
|
|
||||||
nimble md
|
|
||||||
nimble scss
|
|
||||||
echo '${{ secrets.GUEST_ACCOUNTS }}' > ./guest_accounts.jsonl
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
./nitter &
|
|
||||||
pytest -n8 tests
|
|
Loading…
Reference in a new issue