Skip to content

cpondoc pushed code #68

cpondoc pushed code

cpondoc pushed code #68

Workflow file for this run

name: Automated Building and Testing
run-name: ${{ github.actor }} pushed code
on: [push]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python version
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install tools to install package to runner
run: python -m pip install setuptools wheel
- run: cd ${{ github.workspace }}
- name: Create distribution files for package
run: python pyrorl/setup.py sdist -d pyrorl/dist
- name: Install package locally
run: pip install -e pyrorl
- name: Install pytest for testing
run: python -m pip install pytest pytest-mock pytest-cov
- name: Run tests
run: python -m pytest -s
- name: Generate code coverage file
run: python -m pytest --cov .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}