Skip to content

add icon

add icon #13

Workflow file for this run

# comprehensive github action yml reference: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
---
name: CI
on:
push: # any push event to master will trigger this
branches: ["main"]
pull_request: # any pull request to master will trigger this
branches: ["main"]
workflow_dispatch: # allows you to manually trigger run
jobs:
tests:
name: "${{ matrix.os }} Python ${{ matrix.python-version }}"
runs-on: "${{ matrix.os }}" # for all available VM runtime, see this: https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners
env: # define environment variables
USING_COVERAGE: "3.7,3.8,3.9,3.10,3.11"
strategy:
matrix:
os: ["ubuntu-latest",]
# os: ["ubuntu-latest", ] # for debug only
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
# python-version: ["3.7", ]
steps:
- uses: "actions/checkout@v3" # https://github.com/marketplace/actions/checkout
- uses: "actions/setup-python@v4" # https://github.com/marketplace/actions/setup-python
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies on Linux"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel virtualenv codecov
pip install .
pip install -r requirements-test.txt
- name: "Run pytest"
run: "python -m pytest tests --cov=afwf_fts_anything"
- name: "Upload coverage to Codecov"
if: "contains(env.USING_COVERAGE, matrix.python-version)"
uses: "codecov/codecov-action@v3" # https://github.com/marketplace/actions/codecov
with:
fail_ci_if_error: true