-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 1.11 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This workflow will install Python dependencies, run tests and lint, using
# different versions of Python.
#
# Notes:
# - Requires special permission for Github workflows.
# - For more information see following:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# - Based initially on version from https://github.com/LimaBD/batspp.
# - Running Github Actions with Docker: https://stackoverflow.com/a/64373702
# - Docker documentation:
# https://docs.docker.com/engine/reference/commandline/cli/
# https://docs.docker.com/storage/bind-mounts
#
name: tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build docker image
run: |
docker build -t mezcla-dev -f- . <Dockerfile
- name: Run tests
run: |
## TODO???: put repo under /mnt/local-mezcla and installed version under /home/mezcla
docker run --rm --mount type=bind,source="$(pwd)",target=/home/mezcla mezcla-dev