Skip to content

Commit

Permalink
init first unittest for workflowhub
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Nov 6, 2024
1 parent e562d5c commit 6ff1356
Show file tree
Hide file tree
Showing 8 changed files with 1,616 additions and 93 deletions.
26 changes: 26 additions & 0 deletions .github/run_unittests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run tests

on:
pull_request:
branches:
- main
paths:
- 'bin/**' # This will trigger the workflow only if files in the 'bin' folder are modified.

jobs:
unittest:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: python -m pip install -r requirements.txt
- name: Run unittests
run: |
PYTHONPATH=bin python -m unittest discover -s bin/tests
Empty file added sources/bin/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions sources/bin/tests/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Run the tests locally

```
cd codex/sources
PYTHONPATH=bin python -m unittest discover -s bin/tests
```
Loading

0 comments on commit 6ff1356

Please sign in to comment.