Skip to content

Update GitHub Action versions #51

Update GitHub Action versions

Update GitHub Action versions #51

name: Python Package
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.8
- 3.9
- "3.10"
- 3.11
- 3.12
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install flake8 pytest pytest-cov
pip install -e .
- name: Lint with flake8
run: |
flake8
- name: Test with pytest
run: |
pytest --cov --cov-fail-under=50 --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- name: Run command line script
run: |
packagename