Skip to content

Merge branch 'fan' of https://github.com/numericalEFT/MCintegration.p… #48

Merge branch 'fan' of https://github.com/numericalEFT/MCintegration.p…

Merge branch 'fan' of https://github.com/numericalEFT/MCintegration.p… #48

Workflow file for this run

name: CI
<<<<<<< HEAD

Check failure on line 3 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
on:
- push
- pull_request
=======
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
>>>>>>> dev
jobs:
test:
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
<<<<<<< HEAD
- "3.8"
- "3.9"
- "3.10"
=======
- "3.12"
>>>>>>> dev
os:
- ubuntu-latest
arch:
- x64
- x86
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
<<<<<<< HEAD
pip install -r requirements.txt
pip install coverage
pip install sphinx
- name: Run tests and Generate coverage report
run: |
coverage run -m pytest
coverage report
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
=======
pip install coverage
pip install pytest pytest-cov
pip install -r requirements.txt
- name: Run tests
run: |
export PYTHONPATH=src
pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
>>>>>>> dev
docs:
name: Documentation
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
<<<<<<< HEAD
- name: Build documentation
run: |
cd docs
make html
=======
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx
pip install -r requirements.txt
- name: Build documentation
run: |
cd docs
sphinx-apidoc -o source ../src ../src/*_test.py
python ../clean_src_rst.py
make html
python ../clean_html_sidebar.py
>>>>>>> dev
- name: Deploy documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html