Add format check #128
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: test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
test: | |
runs-on: self-hosted | |
container: | |
image: localhost:5000/flagscale_cicd:v1.3 | |
ports: | |
- 80 | |
volumes: | |
- /home/flagscale_cicd/flask/static:/workspace/report | |
options: --gpus all --hostname flagscale_cicd | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Megatron Unit Test | |
run: tests/scripts/unit_test_megatron.sh ${{github.sha}} | |
- name: Megatron Unit Test Coverage Online Report | |
run: echo "You can access the test coverage report at the http://120.92.110.224:8081/${{github.sha}}/cov-report-megatron/index.html" | |
- name: Flagscale Unit Test | |
run: tests/scripts/unit_test_flagscale.sh ${{github.sha}} | |
- name: Flagscale Unit Test Coverage Online Report | |
run: echo "You can access the test coverage report at the http://120.92.110.224:8081/${{github.sha}}/cov-report-flagscale/index.html" | |
- name: Flagscale Functional Test | |
run: tests/scripts/functional_test_flagscale.sh |