-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from equinor/pipelines
Pipelines
Showing
40 changed files
with
4,373 additions
and
880 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
poetry install --with dev --no-interaction | ||
poetry run pip install petsc4py==3.20.0 mpi4py==3.1.5 https://github.com/FEniCS/ufl/archive/refs/tags/2023.2.0.zip https://github.com/FEniCS/ffcx/archive/v0.7.0.zip https://github.com/FEniCS/basix/archive/v0.7.0.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
*.gri filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.gri *.png filter=lfs diff=lfs merge=lfs -text |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ name: docs | |
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
push: | ||
branches: [ main ] | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test3d: | ||
uses: equinor/warmth/.github/workflows/python-test-3d.yml@main | ||
with: | ||
event_type: ${{ github.event_name}} | ||
action_type: ${{ github.event.action}} | ||
test1d: | ||
uses: equinor/warmth/.github/workflows/python-test.yml@main | ||
with: | ||
event_type: ${{ github.event_name}} | ||
action_type: ${{ github.event.action}} | ||
snyk: | ||
uses: equinor/warmth/.github/workflows/snyk.yml@main | ||
docs: | ||
uses: equinor/warmth/.github/workflows/docs.yml@main | ||
|
||
deploy: | ||
needs: [test3d, test1d, snyk, docs] | ||
environment: deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: 'master' | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Azure key vault login | ||
uses: Azure/login@v1 | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Fetch secrets | ||
uses: azure/CLI@v1 | ||
with: | ||
azcliversion: 2.42.0 | ||
inlineScript: | | ||
echo PYPI_TOKEN=$(az keyvault secret show --vault-name PSSCloudDev --name PYPI-Token --query value -o tsv) >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 | ||
poetry install --with dev --no-interaction | ||
- name: Build and publish | ||
run: | | ||
poetry config pypi-token.pypi ${{ env.PYPI_TOKEN }} | ||
poetry build | ||
poetry publish |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Tests3D | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
event_type: | ||
required: true | ||
type: string | ||
action_type: | ||
required: true | ||
type: string | ||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run | ||
uses: tj-actions/docker-run@v2 | ||
with: | ||
image: dolfinx/dolfinx:v0.7.0 | ||
name: dolfinx | ||
options: -v ${{ github.workspace }}:/warmth | ||
args: | | ||
cd /warmth | ||
pip install . | ||
pip install pytest==7.4.2 pytest-cov==4.1.0 | ||
pytest --cov-report=term-missing --cov=warmth/3d tests/3d | tee pytest-coverage.txt | ||
- name: Comment coverage | ||
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }} | ||
uses: coroo/pytest-coverage-commentator@v1.0.2 | ||
with: | ||
pytest-coverage: pytest-coverage.txt |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Snyk scan | ||
on: | ||
push: | ||
branches: [main, dev] | ||
pull_request: | ||
branches: [main, dev] | ||
workflow_call: | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/python-3.10@master | ||
continue-on-error: false | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --sarif-file-output=snyk.sarif --severity-threshold=high | ||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk.sarif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,8 @@ exec11/ | |
exec12/ | ||
exec13/ | ||
|
||
docs/_build | ||
docs/_build | ||
|
||
*.c | ||
*.o | ||
*.so |
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
Oops, something went wrong.