diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 879d8e3..2ea7849 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -11,18 +11,11 @@ jobs: name: Test with tox runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: actions/setup-python@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' architecture: 'x64' - - name: pip cache - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: - ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} - restore-keys: | - ${{ runner.os }}-pip- - - run: pip install tox + - run: pip install tox tox-gh-actions - run: tox + - uses: codecov/codecov-action@v3 diff --git a/pyproject.toml b/pyproject.toml index 3ea5bee..fad151b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ dependencies = [ 'scikit-learn', 'ase', 'gaussianrunner>=1.0.20', - 'tqdm', + 'tqdm>=4.9.0', 'coloredlogs', 'lz4', 'dpdata>=0.1.2', diff --git a/tox.ini b/tox.ini index fbcefce..c2910e0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38 +envlist = py37,py38,py39,py310,py311 [testenv] extras = test @@ -7,11 +7,8 @@ passenv = CI CODECOV_* TOXENV GITHUB_* setenv = DEBUG = 1 usedevelop = true -deps = - codecov>=1.4.0 commands = - pytest tests --cov --cov-config={toxinidir}/tox.ini - - codecov -e TOXENV + pytest tests --cov --cov-report term --cov-report xml --cov-config={toxinidir}/tox.ini [coverage:run] plugins = Cython.Coverage @@ -20,3 +17,10 @@ plugins = Cython.Coverage show_missing = true omit = *test* +[gh-actions] +python = + 3.7: py37 + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311