Skip to content

Merge https://github.com/vTuanpham/googler into feat/highlight_syntax #42

Merge https://github.com/vTuanpham/googler into feat/highlight_syntax

Merge https://github.com/vTuanpham/googler into feat/highlight_syntax #42

Workflow file for this run

name: Test search
on:
push:
paths:
- '!README.md'
- 'src/**.py'
- 'utils/**.py'
- 'utils/**.mjs'
- '.github/workflows/**.yml'
- '**.py'
- 'google.spec'
- 'google'
- 'requirements.txt'
branches:
- 'main'
- 'dev'
- '!feat/**'
pull_request:
type: [opened, reopened, synchronize]
paths:
- '!README.md'
- 'src/**.py'
- 'utils/**.py'
- 'utils/**.mjs'
branches:
- 'main'
- 'dev'
- '!feat/**'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install node dependencies
run: npm install
- name: Cache npm dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Cache pip dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Build application
run: python3 -m PyInstaller google.spec
- name: List files
run: ls
- name: Check exe in dist
run: ls dist
- name: change dir and run exe file
run: |
cd dist
./google --help
./google "Hello world"
- name: change dir and run exe file
run: |
cd dist
./google "How to iter through a dataloader ?"
# - name: Test
# run: python3 -u -m unittest search_test.py