Skip to content

minor fix

minor fix #113

Workflow file for this run

name: Continuous Integration
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Analyze the code with ruff
run: |
ruff check py4phi/
ruff check cli/
- name: Analyze the tests with ruff
run: |
ruff check --config ruff-test.toml tests/
- name: Run tests
run: |
pytest ./tests/ --log-disable py4phi_logger --cov=./py4phi/ --cov-fail-under=95
- name: Upload coverage data to coveralls.io
run: |
pip3 install coveralls
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}