Skip to content

Ralaxing the test requirement so it doesn't run on Python 3.9 #31

Ralaxing the test requirement so it doesn't run on Python 3.9

Ralaxing the test requirement so it doesn't run on Python 3.9 #31

Workflow file for this run

name: Main Tests
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
pip install pytest pytest-cov
- name: Run tests
run: pytest --cov=forcefinder --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: ${{ github.ref_name }}
token: ${{ secrets.CODECOV_TOKEN }}