Merge branch 'main' of https://github.com/quicophy/mdopt #1605
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Set up Poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: poetry install --with test | |
- name: Generate report | |
run: | | |
poetry run pytest --cov=./ --cov-report=xml | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: /home/runner/work/mdopt/mdopt/coverage.xml | |
verbose: true |