-
-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (43 loc) · 1.24 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Test
on:
push:
branches:
- master
- develop
pull_request:
paths:
- '**'
jobs:
sdist:
name: Build distribution
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install --break-system-packages setuptools wheel twine
- name: Build distribution
run: python3 setup.py sdist
test:
name: Run mock unit tests
runs-on: ubuntu-latest
container: benjaminrodenberg/fenics
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install fake precice
run: |
mkdir -p precice
echo "from setuptools import setup" >> precice/setup.py
echo "setup(name='pyprecice', version='3.0.0.0')" >> precice/setup.py
pip3 install --break-system-packages ./precice/
- name: Run unit tests
run: python3 setup.py test -s tests.unit
- name: Run integration tests
run: python3 setup.py test -s tests.integration