Skip to content

Commit

Permalink
Switch to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Sep 1, 2024
1 parent 5c7226f commit 59016a5
Show file tree
Hide file tree
Showing 4 changed files with 482 additions and 224 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ jobs:

- id: install-python-dependencies
name: Install Python dependencies
run: pip install requests click python-dateutil pandas
run: pip install requests click python-dateutil pandas pytest pytest-cov pytest-xdist

- id: download-data
name: Download data
run: python -c 'import cpi'

- id: tests
name: Run tests
run: python tests.py
run: pytest -n auto --cov=cpi --cov-report term-missing tests.py

- id: update
name: Update data
Expand All @@ -96,15 +96,15 @@ jobs:
name: Install Python dependencies
run: |
$CONDA/bin/conda create -n cpi python=${{ matrix.python }}
$CONDA/bin/conda install -n cpi requests click python-dateutil pandas
$CONDA/bin/conda install -n cpi requests click python-dateutil pandas pytest pytest-cov pytest-xdist
- id: download-data
name: Download data
run: $CONDA/bin/conda run -n cpi python -c 'import cpi'

- id: tests
name: Run tests
run: $CONDA/bin/conda run -n cpi python tests.py
run: $CONDA/bin/conda run -n cpi pytest -n auto --cov=cpi tests.py --cov-report term-missing tests.py

- id: update
name: Update data
Expand Down
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ sphinx = "*"
sphinx-autobuild = "*"
sphinx-palewire-theme = "*"
myst-parser = "*"
pytest = "*"
pytest-cov = "*"
pytest-xdist = "*"

[requires]
python_version = "3.11"
Loading

0 comments on commit 59016a5

Please sign in to comment.