Skip to content

Commit

Permalink
test: fix buildjet 8cpu runner
Browse files Browse the repository at this point in the history
  • Loading branch information
sokovninn authored Sep 25, 2024
1 parent a839a4a commit 6e43d3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]'
Expand All @@ -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 }}
Expand Down

0 comments on commit 6e43d3a

Please sign in to comment.