ci(tests) use common script to install development prereqs (#2504)
Simplified workflow and documentation, by moving the development package prerequisites into a new build script `scripts/install-prerequisites.sh`. Also, moved prerequisite installation into its own CI step and removed explicit working directory change as it is no longer needed (`main.py` does it).
This commit is contained in:
4
.github/workflows/ccpp.yml
vendored
4
.github/workflows/ccpp.yml
vendored
@@ -14,8 +14,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ammaraskar/gcc-problem-matcher@master
|
||||
- name: Install prerequisites
|
||||
run: scripts/install-prerequisites.sh
|
||||
- name: Run tests
|
||||
run: sudo apt-get install libpng-dev ruby-full gcovr; cd tests; python ./main.py report
|
||||
run: python tests/main.py report
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
if: github.event_name == 'push'
|
||||
|
||||
Reference in New Issue
Block a user