-
Notifications
You must be signed in to change notification settings - Fork 49
43 lines (40 loc) · 1.27 KB
/
github-actions-ci.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
34
35
36
37
38
39
40
41
42
43
name: GitHub Actions Unit Tests
on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
# runs within your Docker container
# container:
# image: docker://geobaserepo/gdl-cuda11:v2.8.1
# options: --user root
# checkout your code from your repository
# and runs pytest in your pipenv environment
steps:
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# # this might remove tools that are actually needed,
# # if set to "true" but frees about 6 GB
# tool-cache: false
#
# # all of these default to true, but feel free to set to
# # "false" if necessary for your workflow
# android: true
# dotnet: true
# haskell: true
# large-packages: true
# docker-images: true
# swap-storage: true
- name: Pull the Docker Image
run: docker pull geobaserepo/gdl-cuda11:v2.8.1
- uses: actions/checkout@v2
- name: Run pytest
run: |
docker run -v "$(pwd)":geo-deep-learning/tests geobaserepo/gdl-cuda11:v2.8.1 pytest
# - name: Install pipenv
# run: |
# pip install pipenv
#
# - name: Test with pytest
# run: |
# pipenv run pytest tests/