Skip to content

add more Python versions #214

add more Python versions

add more Python versions #214

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
install-type: [core, all]
steps:
- 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
if [ "${{ matrix.install-type }}" = "core" ]; then
pip install -e .
else
pip install -e .[all]
fi
pip install -r requirements-dev.txt
- name: Run tests with coverage
run: |
if [ "${{ matrix.install-type }}" = "core" ]; then
pytest --cov=foundry --cov-report=xml --cov-report=term-missing --ignore=tests/test_molecular.py --ignore=tests/test_ml_frameworks.py
else
pytest --cov=foundry --cov-report=xml --cov-report=term-missing
fi
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true