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 a784309
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
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]

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
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Assumes you have a requirements.txt
pip install -r requirements_dev.txt
- name: Run tests
run: |
pytest tests/unit_tests

0 comments on commit a784309

Please sign in to comment.