Clarify installation procedure #406
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |