-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (36 loc) · 936 Bytes
/
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
name: Continuous Integration 🐍
on: [push]
env:
PACKAGE_NAME: pytest-emoji-output
PACKAGE_VERSION: 0.2.1
jobs:
build_and_verify:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Static code analysis and unit tests
run: ./analyse-code.sh
- name: Build package
run: python setup.py install
- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1
- name: Integration tests
run: bats test-package.bats