Skip to content

chore: add CITATION.cff #236

chore: add CITATION.cff

chore: add CITATION.cff #236

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
static-code-analysis:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: check out repository
uses: actions/checkout@v3
- name: set up Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.10"
mamba-version: "*"
auto-update-conda: true
activate-environment: zarp-cli
environment-file: install/environment.dev.yml
auto-activate-base: false
- name: display environment info
run: |
conda info -a
conda list
- name: flake8
run: flake8
- name: pylint
run: pylint --rcfile pylint.cfg zarp/
- name: mypy
run: mypy zarp
unit-testing:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: [ '3.9', '3.10' ]
name: unit-testing-Python-${{ matrix.python-version }}
steps:
- name: check out repository
uses: actions/checkout@v3
- name: set up Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
auto-update-conda: true
activate-environment: zarp-cli
environment-file: install/environment.dev.root.yml
auto-activate-base: false
- name: display environment info
run: |
conda info -a
conda list
- name: run unit tests
run: |
coverage run --source zarp -m pytest && coverage xml
- name: submit coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true
integration-testing:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: [ '3.9', '3.10' ]
name: integration-testing-Python-${{ matrix.python-version }}
steps:
- name: check out repository
uses: actions/checkout@v3
- name: set up Conda/Mamba
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
auto-update-conda: true
activate-environment: zarp-cli
environment-file: install/environment.dev.root.yml
auto-activate-base: false
- name: display environment info
run: |
conda info -a
conda list
- name: integration test - help screen
run: zarp --help
- name: integration test - version screen
run: zarp --version