Skip to content

Commit

Permalink
-Testing everything on CI pipeline. PaulMcInnis#124
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigG committed Dec 14, 2020
1 parent 79ef78f commit fa64937
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-remote.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# This tests a JobFunnel scrape with remote-only jobs.

name: JobFunnel CI - Remote

on:
push:
branches: [ isolate_remote ]
pull_request:
branches: [ testing ]
branches: [ isolate_remote ]

jobs:
build:
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# This tests all JobFunnel Scrapes except for the remote-only scrapes.

name: JobFunnel CI

on:
push:
branches: [ isolate_remote ]
pull_request:
branches: [ testing ]
branches: [ isolate_remote ]

jobs:
build:
Expand All @@ -34,9 +33,22 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Run CANADA_ENGLISH demo by settings YAML
run: |
funnel load -s demo/settings.yaml -log-level DEBUG
- name: Run an american search by CLI
run: |
funnel inline -kw Python Data Scientist PHD AI -ps WA -c Seattle -l USA_ENGLISH -log-level DEBUG -csv demo_job_search_results/demo_search.csv -cache demo_job_search_results/cache2 -blf demo_job_search_results/demo_block_list.json -dl demo_job_search_results/demo_duplicates_list.json -log-file demo_job_search_results/log.log
- name: Run an american search by CLI
- name: Run a FRANCE_FRENCH demo by settings YAML
run: |
funnel load -s demo/settings.yaml -log-level DEBUG
funnel load -s demo/settings_FR.yaml -log-level DEBUG
- name: Obtain coverage
run: |
pytest --cov=jobfunnel --cov-report=xml
- name: After Success
run: |
bash <(curl -s https://codecov.io/bash)
# TODO: modify some job statuses and run with --no-scrape...
# - './tests/verify_time.sh' TODO: some way of verifying execution time
# - './demo/gen_call_graphs.sh' TODO: some way of showing .dot on GitHub?
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
'flake8',
'pipenv',
'pytest-cov',
'pytest-cov',
]
here = Path(__file__).parent
readme = (here / "readme.md").read_text()
Expand Down

0 comments on commit fa64937

Please sign in to comment.