update #800
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: ci | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: {} | |
jobs: | |
build: | |
name: "CI" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build Docker image | |
run: | | |
docker build . -t gnssrefl | |
- name: Create Docker container | |
run: | | |
docker run --name gnssrefl -d -v "$PWD:/src" gnssrefl tail -f /dev/null | |
- name: Run smoke tests | |
run: | | |
docker exec -i gnssrefl /src/software_tests | |
- name: Install pytest | |
run: | | |
docker exec -i gnssrefl pip3 install 'pytest~=7.2' 'pytest-mock~=3.10' | |
- name: Run unit tests | |
run: | | |
docker exec -i gnssrefl pytest /src/test |