Skip to content

CI

CI #283

Workflow file for this run

name: "CI"
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
release:
types:
- published
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
tests:
runs-on: ${{ matrix.os }}
name: "💻-${{matrix.os }} 🐍-${{ matrix.python-version }}"
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version:
- "3.12"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: "Setup Micromamba"
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yaml
environment-name: htf_env
create-args: >-
python=${{ matrix.python-version }}
init-shell: bash
- name: "Install"
run: python -m pip install --no-deps -e .
- name: "Environment Information"
run: |
micromamba info
micromamba list
pip list
- name: "Run tests"
run: |
pytest -n auto -v --cov=htf --cov-report=xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: false