-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configured DevContainer for Python Client; Fixed HF Unittest; Integra…
…ted Unittests into VSCode; Quality of Life (#660) * Configured backend and python client tests for vscode and moved all devcontainer files to .devcontainer * removed old python-client/Dockerfile.dev and integrated into dev container * added launch target for vuetify tests * consolidated all tests into tests.yml * readded LICENSE file to python client * fixed minore issues in the application and added further documentation on frontend development * made linter happy and fixed backend workflow * fixed communicating HF Cache folder to hf * removed default_hf_home_in_tira_host --------- Co-authored-by: Tim Hagen <[email protected]>
- Loading branch information
1 parent
9dbe9eb
commit fb66cc7
Showing
48 changed files
with
450 additions
and
545 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
.github/workflows/test-python-client-on-many-python-versions.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Unit Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
backend-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install TIRA Python Client from Repo | ||
working-directory: ${{github.workspace}}/python-client | ||
run: | | ||
# Install tira from the repository since the pip version may not be up-to-date enough. | ||
# The install musst be editable (-e) since importing from tira fails otherwise | ||
pip3 install -e .[dev,test] | ||
- name: Install dependencies | ||
working-directory: ${{github.workspace}}/application | ||
run: | | ||
# Create a dummy DISRAPTOR_API_KEY | ||
sudo bash -c 'mkdir -p "/etc/discourse/" && echo "I am so secret" > "/etc/discourse/client-api-key"' | ||
pip3 install -e .[dev,test] | ||
make setup | ||
- name: Run backend tests | ||
working-directory: ${{github.workspace}}/application/test | ||
run: pytest | ||
|
||
frontend-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
- name: Install dependencies | ||
working-directory: ${{github.workspace}}/frontend | ||
run: yarn --frozen-lockfile | ||
- name: Run frontend tests | ||
working-directory: ${{github.workspace}}/frontend | ||
run: yarn test | ||
|
||
python-client-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Install Dependencies | ||
working-directory: ${{github.workspace}}/python-client | ||
run: | | ||
sudo apt-get install -y openjdk-11-jdk | ||
pip3 install .[test,dev] | ||
- name: Running Tests | ||
working-directory: ${{github.workspace}}/python-client | ||
run: | | ||
echo running on branch ${GITHUB_REF##*/} | ||
pytest |
Oops, something went wrong.