Skip to content

Commit 5c72f95

Browse files
committed
TST: Add GH actions workflow
1 parent 3dd78f6 commit 5c72f95

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build-test.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: build-test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- master
12+
schedule:
13+
# 7am EST / 8am EDT Mondays
14+
- cron: '0 12 * * 1'
15+
16+
jobs:
17+
build-test:
18+
if: |
19+
github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
20+
|| ! contains(github.event.head_commit.message, '[skip ci]')
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Start all the things
25+
run: docker compose up -d
26+
- name: Test the things
27+
run: docker exec etelemetry_server bash -c "pytest /src/etelemetry_app"
28+
- name: Stop all the things
29+
run: docker compose down

0 commit comments

Comments
 (0)