Skip to content

Commit

Permalink
Merge pull request #42 from FlagOpen/dev_zb
Browse files Browse the repository at this point in the history
[ci/cd] Add python-test config yaml for Unit Test
  • Loading branch information
Bowen12992 committed May 31, 2024
2 parents 6f1b1c6 + b43999a commit a681112
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

# 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, docker]
container:
image: localhost:5000/flag-gems-ci:v1.0
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_*

0 comments on commit a681112

Please sign in to comment.