-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (62 loc) · 1.63 KB
/
tests.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
test-conda-store-server:
name: 'Test nb_conda_store_kernels'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: 'Checkout Repository'
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install .[dev]
- name: Black Formatting
run: |
black --version
black nb_conda_store_kernels --diff
black --check nb_conda_store_kernels
- name: Flake8 Formatting
run: |
flake8 --version
flake8
- name: Release Check
run: |
python -m build --sdist
twine check dist/*
build-docker-image:
name: 'Build docker images'
runs-on: ubuntu-latest
steps:
- name: 'Checkout Infrastructure'
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker Meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: |
quansight/nb-conda-store-kernels
tags: |
type=sha
- name: Build docker
uses: docker/build-push-action@v2
with:
file: "Dockerfile"
tags: |
${{ steps.meta.outputs.tags }}
push: false
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max