Skip to content

Commit 4dcd80d

Browse files
committed
Merge CI
1 parent 5daac66 commit 4dcd80d

3 files changed

Lines changed: 54 additions & 63 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,28 @@ on:
66
pull_request:
77
branches:
88
- "*"
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${ {github.event_name }}-${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
914

1015
jobs:
16+
pre-commit:
17+
name: pre-commit checks
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.x'
25+
- name: Run pre-commit
26+
uses: pre-commit/action@v3.0.1
27+
1128
run_tox:
12-
name: Run mocked tests
29+
name: mocked tests
30+
needs: [pre-commit]
1331
runs-on: ubuntu-latest
1432
steps:
1533
- name: Checkout Repository
@@ -39,8 +57,40 @@ jobs:
3957
export PKG_CONFIG_PATH=$(readlink -f "precice-core/build")
4058
tox
4159
60+
build_dist:
61+
name: build distributions
62+
needs: [pre-commit]
63+
runs-on: ubuntu-latest
64+
container:
65+
image: precice/precice:nightly
66+
options: --user root
67+
steps:
68+
- name: Checkout Repository
69+
uses: actions/checkout@v4
70+
with:
71+
fetch-depth: 0
72+
- name: Configure safe directory
73+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
74+
- name: Install dependencies
75+
run: |
76+
apt-get -yy update
77+
apt-get install -y python3-pip python3.12-venv pkg-config pipx
78+
rm -rf /var/lib/apt/lists/*
79+
- name: Install pyproject-build
80+
run: |
81+
pipx install build
82+
- name: Build sdist
83+
run: |
84+
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
85+
$HOME/.local/bin/pyproject-build -s
86+
- name: Build wheel
87+
run: |
88+
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
89+
$HOME/.local/bin/pyproject-build -w
90+
4291
pip_install:
43-
name: Run pip install
92+
name: pip install
93+
needs: [pre-commit]
4494
runs-on: ubuntu-latest
4595
container:
4696
image: precice/precice:nightly
@@ -69,8 +119,9 @@ jobs:
69119
.venv/bin/python3 -c "import precice; print(precice.__version__)"
70120
.venv/bin/python3 -c "import precice; print(precice.get_version_information())"
71121
122+
72123
solverdummy_test:
73-
name: Run solverdummy
124+
name: solverdummies
74125
needs: [pip_install]
75126
runs-on: ubuntu-latest
76127
container:

.github/workflows/check-pep8.yml

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

.github/workflows/run-solverdummy.yml

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

0 commit comments

Comments
 (0)