-
Notifications
You must be signed in to change notification settings - Fork 119
61 lines (54 loc) · 1.61 KB
/
oas.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: OAS build
# This workflow runs all unit and regression tests, as well as coveralls.
# On the pull-request events, this workflow runs OAS tests, checks code format by flake8/black, and builds the docs.
# On the push-to-main events, it also deploys the docs.
on:
pull_request:
push:
branches:
- main
tags:
- v*.*.*
schedule:
# Run the tests at 7:23pm UTC on the 2nd and 17th of every month
- cron: '23 19 2,17 * *'
jobs:
test:
strategy:
fail-fast: false
matrix:
dockerImage: [stable, latest]
runs-on: ubuntu-latest
container:
image: mdolab/public:u22-gcc-ompi-${{ matrix.dockerImage }}-amd64
options: --user root
steps:
- uses: actions/checkout@v4
- name: Install OAS
run: |
source /home/mdolabuser/.bashrc
source /home/mdolabuser/.bashrc_mdolab
- name: Install OAS
run: |
pip install -e .[test,mphys]
- name: Run tests (latest)
run: |
testflo -n 2 -v openaerostruct --coverage --coverpkg openaerostruct
coverage xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# --- linting and formatting ---
black:
uses: mdolab/.github/.github/workflows/black.yaml@main
flake8:
uses: mdolab/.github/.github/workflows/flake8.yaml@main
# --- publish to PyPI
pypi:
needs: [test, flake8, black]
uses: mdolab/.github/.github/workflows/pypi.yaml@main
secrets: inherit