Skip to content

Commit

Permalink
pipeline: run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buraksenkus committed Jan 17, 2025
1 parent 2ba99dd commit 7574cb3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ jobs:
set-up-env:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install dpkg-dev
- name: Set up venv
run: |
python3 -m venv venv
Expand All @@ -26,17 +23,33 @@ jobs:
name: venv-3.12
path: venv

test-repo:
unit-test:
runs-on: ubuntu-24.04
needs: [ set-up-env ]
continue-on-error: false
steps:
- uses: actions/checkout@v4
- name: Download venv artifact
uses: actions/download-artifact@v4
with:
name: venv-3.12
path: venv
- name: Run unit tests
run: |
chmod -R +xr venv
./venv/bin/python3 -m unittest
test-server:
runs-on: ubuntu-24.04
needs: [ set-up-env ]
steps:
- uses: actions/checkout@v4
- name: Download venv artifact
uses: actions/download-artifact@v4
with:
name: venv-3.12
path: venv
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install dpkg-dev
- name: Create and populate config.json
run: |
echo '{
Expand Down

0 comments on commit 7574cb3

Please sign in to comment.