[Auto-generated] Update dependencies (#159) #333
Workflow file for this run
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
name: CI - Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
- 'push-action/**' | |
jobs: | |
base-tests: | |
name: Call reusable workflow | |
uses: ./.github/workflows/ci_tests.yml | |
with: | |
# general | |
install_extras: "[dev,docs,testing]" | |
# pre-commit | |
skip_pre-commit_hooks: pylint,pylint-tests | |
# pylint | |
pylint_runs: | | |
--rcfile=pyproject.toml ci_cd | |
--rcfile=pyproject.toml --disable=import-outside-toplevel,redefined-outer-name tests | |
# build dist | |
build_libs: flit | |
build_cmd: flit build | |
# build docs | |
update_python_api_ref: true | |
update_docs_landing_page: false | |
package_dirs: ci_cd | |
debug: false | |
pytest: | |
name: pytest | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version}} | |
- name: Install Python dependencies | |
run: | | |
python -m pip install -U pip | |
pip install -U setuptools wheel flit | |
pip install -e .[testing] | |
- name: Test with pytest | |
run: pytest -vvv --cov=ci_cd --cov-report=xml | |
- name: Upload coverage to Codecov | |
if: matrix.python-version == '3.9' && github.repository == 'SINTEF/ci-cd' | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |