$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
[push] | |
default = current | |
[user] | |
name = Cristina Munoz | |
email = hi@xmunoz.com | |
[core] | |
editor = /usr/local/bin/vim | |
pager = less |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.spatial import Voronoi | |
def voronoi_finite_polygons_2d(vor, radius=None): | |
""" | |
Reconstruct infinite voronoi regions in a 2D diagram to finite | |
regions. | |
Parameters |
name: Github action to run tests | |
on: pull_request | |
jobs: | |
Run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- uses: actions/checkout@v2 |
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-20.04 |
$ tree -a | |
. | |
├── my-repo | |
├── .git | |
├── .github | |
│ └── workflows | |
│ └── tests.yml | |
└── src |
on: ${ACTION} |
FROM docker:dind | |
RUN apk add curl | |
RUN curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sh | |
COPY .actrc / | |
RUN mv /.actrc ~/.actrc | |
WORKDIR /project |
$ tree -a | |
. | |
├── .actrc | |
├── Dockerfile | |
├── my-repo | |
├── .git | |
├── .github | |
│ └── workflows | |
│ └── tests.yml | |
└── src |