Skip to content

unit

unit #1335

Workflow file for this run

name: unit
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # Run every day at arbitrary time (4:00 AM UTC)
push:
branches:
- master
jobs:
test:
timeout-minutes: 75
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu, windows, macos]
name: 'test (${{ matrix.os }} - py${{ matrix.python-version }})'
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.pull_request.head.ref }}
- name: Run tests
uses: ./.github/actions/test-unit
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
report_job: 'test (${{ matrix.os }} - py${{ matrix.python-version }})'
codecov-token: ${{ secrets.CODECOV_TOKEN }}
unit-tests-notify:
needs: [ test ]
runs-on: ubuntu-latest
if: (success() || failure()) && github.ref == 'refs/heads/master'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.pull_request.head.ref }}
- name: Notify
uses: ./.github/actions/workflow-notify-v2
with:
slack-webhook: ${{ secrets.E2E_REGULAR_SLACK_WEBHOOK }}
neptune-ref: ${{ github.ref }}