[CI/CD] New python coverage test for CI #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: model-test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
container-model-test: | |
runs-on: [self-hosted, docker] | |
container: | |
image: localhost:5000/flag-gems-ci:v1.0 | |
ports: | |
- 82 | |
options: --gpus all --hostname flag-gems_cicd_model -v /home/flaggems_cicd/huggingface_cache_bert:/__w/_temp/_github_home/.cache/huggingface | |
steps: | |
- name: checkout-code | |
uses: actions/checkout@v4 | |
- name: check-gpu-free | |
shell: bash | |
run: tools/gpu_check.sh | |
- name: examples-flag-gems | |
run: | | |
CUDA_VISIBLE_DEVICES=5 pytest -s examples/model_bert_test.py |