This repository has been archived by the owner on Sep 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (56 loc) · 1.59 KB
/
build.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
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
69
70
71
72
# This file is part of the django-environ-2.
#
# Copyright (C) 2021 Serghei Iakovlev <[email protected]>
# Copyright (C) 2013-2021 Daniele Faraglia <[email protected]>
#
# For the full copyright and license information, please view
# the LICENSE file that was distributed with this source code.
name: Build
on:
push:
branches:
- master
- 'feature/**'
- 'release/**'
- 'fix/**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- master
jobs:
build:
name: Build and test package distribution
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Python 3.9
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Set up virtualenv
run: make init
- name: Install dependencies
run: make install
- name: Build gstore distribution (sdist and wheel)
run: make build
- name: Testing package distribution and installation
run: make test-dist
install-dev:
name: Verify dev environment
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Python 3.9
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Install in dev mode
run: python -m pip install -e .
- name: Import package
run: python -c 'import environ; print(environ.__version__)'