Skip to content

Commit

Permalink
TST: Add GH actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Jun 28, 2022
1 parent 3dd78f6 commit 5c72f95
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-test

on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
schedule:
# 7am EST / 8am EDT Mondays
- cron: '0 12 * * 1'

jobs:
build-test:
if: |
github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|| ! contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Start all the things
run: docker compose up -d
- name: Test the things
run: docker exec etelemetry_server bash -c "pytest /src/etelemetry_app"
- name: Stop all the things
run: docker compose down

0 comments on commit 5c72f95

Please sign in to comment.