Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split test and lint to two parallel steps #4

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,48 @@ permissions:

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Setup virtual environment
run: make setup
- name: Install test dependencies
run: make install-dev
- name: Lint with ruff, reformat-gherkin, and mypy
run: make lint-ci
- name: Setup virtual environment and install test dependencies
run: make setup install-dev
- name: Run unit and feature tests
run: make test-ci
- name: Create test report
- name: Publish test report
uses: n-ryu/[email protected]
if: always()
with:
name: Test report
path: "reports/**/*.xml"
reporter: java-junit
list-tests: "failed"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Create test summary
- name: Add test results to summary
uses: test-summary/action@v2
if: always()
with:
paths: "reports/**/*.xml"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Add coverage report to summary
if: always()
run: |
echo "**Test Coverage Report**" >> $GITHUB_STEP_SUMMARY
cat reports/coverage_report.md >> $GITHUB_STEP_SUMMARY

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Setup virtual environment and install test dependencies
run: make setup install-dev
- name: Lint with ruff, reformat-gherkin, and mypy
run: make lint-ci