Skip to content

[CI/CD] Add python-test config yaml for Unit Test #7

[CI/CD] Add python-test config yaml for Unit Test

[CI/CD] Add python-test config yaml for Unit Test #7

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: flag-gems-test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
container-test-job:
runs-on: self-hosted
name: p-phy-dgx-a100-node-prod-038
container:
image: flag-gems-ci:ubuntu20.04-cu12.1-py3.11-triton2.2-torch2.2
env:
NODE_ENV: development
ports:
- 80
options: --gpus all --hostname flag-gems_cicd
steps:
- name: checkout-code
uses: actions/checkout@v2
- name: unit_test-flag-gems
run: |
pytest -s tests/test_*
- name: benchmark-flag-gems
run: |
pytest -s benchmark/test_*
- name: examples-flag-gems
run: |
pytest -s examples/model_*