automate UML diagrams #760
Workflow file for this run
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: ci | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip and setuptools | |
run: pip install --upgrade pip setuptools | |
- name: Setup environment | |
run: pip install -e .[test] | |
- name: Run doctests | |
run: pytest --doctest-modules --ignore=causalpy/tests/ causalpy/ | |
- name: Run tests | |
run: pytest --cov-report=xml --no-cov-on-fail | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads | |
name: ${{ matrix.python-version }} | |
fail_ci_if_error: false |