Skip to content

Commit

Permalink
builde
Browse files Browse the repository at this point in the history
  • Loading branch information
5uperpalo committed May 1, 2024
1 parent 7a74236 commit 826e424
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
jobs:
codestyle:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' !github.event.pull_request.draft }}
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actionscheckout@v4
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actionssetup-python@v5
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
Expand All @@ -33,15 +33,15 @@ jobs:
test:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' !github.event.pull_request.draft }}
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
strategy:
fail-fast: true
matrix:
python-version [3.9, 3.10, 3.11]
steps:
- uses: actionscheckout@v4
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actionssetup-python@v5
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -53,19 +53,19 @@ jobs:
run: |
pytest --doctest-modules churn_pred --cov-report xml --cov-report term --disable-pytest-warnings --cov=churn_pred tests
- name: Upload coverage
uses: actionsupload-artifact@v4
uses: actions/upload-artifact@v4
with:
name: coverage${{ matrix.python-version }}
path: .coverage

finish:
needs: test
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' !github.event.pull_request.draft }}
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actionscheckout@v4
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actionssetup-python@v5
uses: actions/setup-python@v5
with:
python-version 3.10
- name: Install dependencies
Expand All @@ -74,7 +74,7 @@ jobs:
python -m pip install coverage
- name: Download all artifacts
# Downloads coverage1, coverage2, etc.
uses: actionsdownload-artifact@v4
uses: actions/download-artifact@v4
- name: Convert coverage
run: |
coverage combine coverage.coverage
Expand Down

0 comments on commit 826e424

Please sign in to comment.