chore: add CITATION.cff #236
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: 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 |