Skip to content

Commit

Permalink
update tox.ini to add pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
robelgeda committed Aug 6, 2023
1 parent 5a63e37 commit 534754f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
matrix:
include:
- os: ubuntu-latest
python: '3.9'
tox_env: 'pypython3.10-test-alldeps'
python: '3.10'
tox_env: 'py310-test-alldeps'
allow_failure: false
prefix: ''
steps:
Expand All @@ -34,7 +34,6 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install tox
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with Tox
run: |
tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }}
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tox]
envlist =
py{python3.10}-test{-alldeps}
py{python3.10}-test-numpy{122}
py{python3.10}-test-astropy{50}
py{310}-test{-alldeps}
py{310}-test-numpy{122}
py{310}-test-astropy{50}
build_docs
linkcheck

Expand Down Expand Up @@ -45,7 +45,6 @@ description =
# The following provides some specific pinnings for key packages
deps =
-r{toxinidir}/requirements.txt
cov: coverage
numpy122: numpy==1.22.*
astropy50: astropy==5.0.*

Expand All @@ -56,6 +55,7 @@ extras =

commands =
pip freeze
pytest --pyargs petrofit {toxinidir}/docs

[testenv:build_docs]
changedir = docs
Expand Down

0 comments on commit 534754f

Please sign in to comment.