Skip to content

Commit

Permalink
Python Unittests
Browse files Browse the repository at this point in the history
Testing to see if adding unittests to the continuous integration is possible with the current setup.
  • Loading branch information
kjkoeller authored Jul 19, 2024
1 parent cf24e2d commit df01db5
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,30 @@ jobs:
run: |
tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
# run Python unit tests after testing that the project compiles in different versions
build:
strategy:
matrix:
python-version: [3.10]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Switch to Current Branch
run: git checkout ${{ env.BRANCH }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Run unit tests
run: python -m pytest --import-mode=append tests/

0 comments on commit df01db5

Please sign in to comment.