Skip to content

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

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

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

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:
test:
runs-on: self-hosted
steps:
- name: Run a one-line script
run: echo Hello, world!
container-test-job:
runs-on: self-hosted
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_*