Skip to content

Commit d89d931

Browse files
committed
use standard gh actions runner for tests
1 parent 8b6c5c1 commit d89d931

File tree

2 files changed

+41
-24
lines changed

2 files changed

+41
-24
lines changed

.github/workflows/checks.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Tests
3+
on:
4+
# run tests on pull requests for main and release branches
5+
# and (after a merge) on the target branch
6+
push:
7+
branches:
8+
- main
9+
- create-pull-request/patch*
10+
pull_request:
11+
merge_group:
12+
types:
13+
- checks_requested
14+
jobs:
15+
bugout:
16+
name: Cancel superseded jobs
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- name: Cancel Previous Runs
20+
uses: styfle/[email protected]
21+
with:
22+
all_but_latest: true
23+
# also works on 'pull_request' targets
24+
ignore_sha: true
25+
access_token: ${{ github.token }}
26+
runtests:
27+
name: Run tests
28+
runs-on: ubuntu-22.04
29+
timeout-minutes: 90
30+
steps:
31+
- uses: actions/checkout@v4
32+
- name: install deal.II
33+
run: |
34+
sudo apt update
35+
sudo apt install libdeal.ii-dev
36+
- name: install uv
37+
uses: astral-sh/setup-uv@v5
38+
- name: build
39+
run: uv build
40+
- name: pytest
41+
run: uv run --extra=test pytest

0 commit comments

Comments
 (0)