Skip to content

CI

CI #1087

Workflow file for this run

name: CI
on:
schedule:
- cron: "0 12 * * *"
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest", "macOS-latest",]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@main
with:
environment-file: .github/test_env.yaml
environment-name: test
create-args: >-
python=${{ matrix.python-version }}
pytest=${{ matrix.pytest }}
- name: Install package
shell: bash -l {0}
run: |
python -m pip install . --no-deps
- name: Run tests
shell: bash -l {0}
run: |
pytest -v --cov=qforce --cov-report=xml --color=yes qforce/tests/
- name: CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}