Build test #95
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: Tests | |
on: | |
push: | |
paths-ignore: | |
- "*.md" | |
branches-ignore: | |
- master | |
workflow_call: | |
# Ensure that multiple runs on the same branch do not overlap. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
integration-test: | |
name: Full integration test | |
runs-on: buildjet-2vcpu-ubuntu-2204 | |
strategy: | |
matrix: | |
nim: ["devel"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Cache Nimble Dependencies | |
id: cache-nimble | |
uses: buildjet/cache@v3 | |
with: | |
path: ~/.nimble | |
key: ${{ matrix.nim }}-nimble-${{ hashFiles('*.nimble') }} | |
restore-keys: | | |
${{ matrix.nim }}-nimble- | |
- name: Setup Python (3.10) with pip cache | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: pip | |
- name: Setup Nim | |
uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Project | |
run: nimble build -d:release -Y | |
- name: Install SeleniumBase and Chromedriver | |
run: | | |
pip install seleniumbase | |
seleniumbase install chromedriver | |
- name: Start Redis Service | |
uses: supercharge/[email protected] | |
- name: Prepare Nitter Environment | |
run: | | |
sudo apt-get update && sudo apt-get install -y libsass-dev | |
cp nitter.example.conf nitter.conf | |
sed -i 's/enableDebug = false/enableDebug = true/g' nitter.conf | |
nimble md | |
nimble scss | |
echo '${{ secrets.SESSIONS }}' | head -n1 | |
echo '${{ secrets.SESSIONS }}' > ./sessions.jsonl | |
- name: Run Tests | |
run: | | |
./nitter & | |
pytest -n3 tests |