forked from openclimatefix/neso-solar-consumer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test Docker build workflow in forked repo
- Loading branch information
1 parent
f2222f1
commit c9a9ad1
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
name: Docker Build | ||
name: Docker Build and Test | ||
|
||
on: push | ||
|
||
jobs: | ||
DockerBuild: | ||
name: Build docker | ||
DockerBuildAndTest: | ||
name: Build and Run Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build | ||
run: docker build . | ||
- name: Build Docker Image | ||
run: docker build -t neso-solar-consumer . | ||
|
||
- name: Run Tests in Docker | ||
run: | | ||
docker run --rm neso-solar-consumer pytest |