Skip to content

Commit

Permalink
Merge duplicated workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <jiaweig3@illinois.edu>
  • Loading branch information
tylergu committed Dec 13, 2023
1 parent c17e0a0 commit 315a279
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 43 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/python-syntax-checker.yml

This file was deleted.

21 changes: 16 additions & 5 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install Packages
run: pip install codespell flake8
- name: Check Spelling
run: codespell --skip="./data"|| true
- name: Check Syntax Error
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- uses: actions/setup-go@v4
with:
go-version: '1.20.5'
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
make
- name: Run unittest
run: |
pytest -m "not local and not singleBugReproduction"
pytest -m "not local and not singleBugReproduction" --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=acto | tee pytest-coverage.txt
- name: Pytest coverage comment
if: ${{ github.event == 'pull_request' }}
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

0 comments on commit 315a279

Please sign in to comment.