Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docker CI

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

env:
DOCKER_IMAGE: fr3d-python
DOCKER_CONTAINER: fr3d-python-container

steps:
- uses: actions/checkout@v3

- name: Build the docker image
run: DOCKER_BUILDKIT=1 docker build --progress=plain -t $DOCKER_IMAGE .

- name: Create the docker container
run: docker create --name $DOCKER_CONTAINER $DOCKER_IMAGE

- name: Start the docker container
run: docker start $DOCKER_CONTAINER

- name: Install test requirements
run: docker exec $DOCKER_CONTAINER bin/bash -c "pip3 install -r test_requirements.txt"

- name: Run test
run: docker exec $DOCKER_CONTAINER bin/bash -c "pytest"
2 changes: 1 addition & 1 deletion requirements-python-2-7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ importlib-metadata==1.6.0
importlib-resources==1.4.0
kiwisolver==1.1.0
matplotlib==2.2.5
numpy==1.22.0
numpy==1.16.6
pathlib2==2.3.5
pyparsing==2.4.7
python-dateutil==2.8.2
Expand Down
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest==4.6.11