Skip to content

Commit

Permalink
CI: setup Xvbf
Browse files Browse the repository at this point in the history
  • Loading branch information
Apolo151 committed Feb 9, 2025
1 parent b97d142 commit 26778f3
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/cross_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run headless test
uses: coactions/setup-xvfb@v1
with:
run: |
export DISPLAY=:99
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
pip install -r requirements.txt
pytest --cov=solver --cov=parser --cov=plotter
# - name: Install Dependencies
# run: pip install -r requirements.txt

- name: Set Matplotlib Backend
run: echo "MPLBACKEND=TkAgg" >> $GITHUB_ENV

- name: Debug Matplotlib Backend
run: python -c "import matplotlib; print(matplotlib.get_backend())"

- name: Run Tests
run: pytest --cov=solver --cov=parser --cov=plotter
# - name: Run Tests
# run: pytest --cov=solver --cov=parser --cov=plotter

build:
needs: test
Expand Down

0 comments on commit 26778f3

Please sign in to comment.