-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
cache: pip | ||
|
||
- name: Install dependencies [Ubuntu] | ||
if: matrix.os == 'buildjet-4vcpu-ubuntu-2204' | ||
if: matrix.os == 'buildjet-8vpcu-ubuntu-2204' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y pandoc | ||
|
@@ -48,26 +48,26 @@ jobs: | |
pip install -e .[dev] | ||
pip install coverage-badge>=1.1.0 pytest-cov>=4.1.0 | ||
- name: Run tests with coverage [Ubuntu] | ||
if: matrix.os == 'buildjet-4vcpu-ubuntu-2204' && matrix.version == '3.10' | ||
if: matrix.os == 'buildjet-8vpcu-ubuntu-2204' && matrix.version == '3.10' | ||
run: pytest tests --cov=datadreamer --cov-report xml --junit-xml pytest.xml | ||
|
||
- name: Run tests [Windows, macOS] | ||
if: matrix.os != 'buildjet-4vcpu-ubuntu-2204' || matrix.version != '3.10' | ||
if: matrix.os != 'buildjet-8vpcu-ubuntu-2204' || matrix.version != '3.10' | ||
run: pytest tests --junit-xml pytest.xml | ||
|
||
- name: Generate coverage badge [Ubuntu] | ||
if: matrix.os == 'buildjet-4vcpu-ubuntu-2204' && matrix.version == '3.10' | ||
if: matrix.os == 'buildjet-8vpcu-ubuntu-2204' && matrix.version == '3.10' | ||
run: coverage-badge -o media/coverage_badge.svg -f | ||
|
||
- name: Generate coverage report [Ubuntu] | ||
if: matrix.os == 'buildjet-4vcpu-ubuntu-2204' && matrix.version == '3.10' | ||
if: matrix.os == 'buildjet-8vpcu-ubuntu-2204' && matrix.version == '3.10' | ||
uses: orgoro/[email protected] | ||
with: | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Commit coverage badge [Ubuntu] | ||
if: matrix.os == 'buildjet-4vcpu-ubuntu-2204' && matrix.version == '3.10' | ||
if: matrix.os == 'buildjet-8vpcu-ubuntu-2204' && matrix.version == '3.10' | ||
run: | | ||
git config --global user.name 'GitHub Actions' | ||
git config --global user.email '[email protected]' | ||
|
@@ -76,7 +76,7 @@ jobs: | |
git commit -m "[Automated] Updated coverage badge" | ||
} | ||
- name: Push changes [Ubuntu] | ||
if: matrix.os == 'buildjet-4vcpu-ubuntu-2204' && matrix.version == '3.10' | ||
if: matrix.os == 'buildjet-8vpcu-ubuntu-2204' && matrix.version == '3.10' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
branch: ${{ github.head_ref }} | ||
|