Skip to content

Commit

Permalink
move unit tests from nose tests to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb committed Nov 28, 2024
1 parent 13a256e commit cacafbb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Run Tests
on: [push]
name: Python Tests
on:
pull_request:
branches:
jobs:
unit-tests:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: [2.7, 3.5, 3.6, 3.7, 3.8]

python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Test with nosetests
run: |
nosetests tests/unit_tests
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run tests
run: |
PYTHONPATH=$(pwd) pytest tests/unit_tests
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ wheel==0.38.1
nose==1.3.7
mock==2.0.0
flake8
pytest

0 comments on commit cacafbb

Please sign in to comment.