Skip to content

Refactor test particles #100

Refactor test particles

Refactor test particles #100

Workflow file for this run

name: ci-cd
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'README.md'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Check-out repository
uses: actions/checkout@v4
- name: Install poetry
uses: snok/install-poetry@v1
- name: Install package
run: poetry install
- name: Test with pytest
run: poetry run pytest tests/ --cov --cov-report=xml
- name: Track code coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml # coverage report
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build documentation
run: poetry run make html --directory docs/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html/
force_orphan: true