Skip to content

Commit

Permalink
Don' t always fail CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lcallarec committed Jan 8, 2024
1 parent 7591d93 commit c1f5c36
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@ name: CI
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v1
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install valac libgee-0.8-dev libgtk-4-dev libcairo-dev xvfb at-spi2-core
pip install meson
pip install ninja
- name: Build
run: |
meson build -Ddebug=true -Db_coverage=true
ninja -C build
- name: Run tests
run: |
meson test -C build --wrapper="xvfb-run --auto-servernum --server-num=1" || [[ -f /home/runner/work/live-chart/live-chart/build/meson-logs/testlog-xvfb-run.txt ]] && cat /home/runner/work/live-chart/live-chart/build/meson-logs/testlog-xvfb-run.txt && exit 1
- name: Send coverage report
run: bash <(curl -s https://codecov.io/bash)
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v1
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
- uses: actions/checkout@v2
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install valac libgee-0.8-dev libgtk-4-dev libcairo-dev xvfb at-spi2-core
pip install meson
pip install ninja
- name: Build
run: |
meson build -Ddebug=true -Db_coverage=true
ninja -C build
- name: Run tests
run: |
meson test -C build --wrapper="xvfb-run --auto-servernum --server-num=1" || ([[ -f /home/runner/work/live-chart/live-chart/build/meson-logs/testlog-xvfb-run.txt ]] && cat /home/runner/work/live-chart/live-chart/build/meson-logs/testlog-xvfb-run.txt && exit 1)
- name: Send coverage report
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit c1f5c36

Please sign in to comment.