Added changelog entry to go with recent update #100
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python package | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies and do a local pip install | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[dev] | |
- name: Run test suite, with coverage | |
run: | | |
git config --global user.name "CI" | |
git config --global user.email "" | |
pytest --cov=rushd --cov-report=xml --continue-on-collection-errors | |
continue-on-error: true | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
PYTHON: ${{ matrix.python-version }} | |
with: | |
file: ./coverage.xml | |
flags: unittests | |
env_vars: PYTHON | |
name: github_actions | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Run test-suite in fail mode | |
run: pytest --continue-on-collection-errors | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] |