Skip to content

Commit 8899eee

Browse files
committed
Add Github Continuous integration to build and test
1 parent 017a06c commit 8899eee

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ development ]
6+
pull_request:
7+
branches: [ development ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Update the environment files
18+
run: |
19+
echo "MATHPIX_APP_KEY=${{ secrets.MATHPIX_APP_KEY }}" >> mathpix-variables.env
20+
echo "MATHPIX_APP_ID=${{ secrets.MATHPIX_APP_ID }}" >> mathpix-variables.env
21+
- name: Build the Docker image
22+
run: |
23+
docker-compose build
24+
- name: Run the test suite
25+
run: |
26+
docker-compose run flask bash -c "cd /app/flask/flaskapp && python -m pytest"
27+

0 commit comments

Comments
 (0)