-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (37 loc) · 1.16 KB
/
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
44
45
46
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: Test Python package
runs-on: ubuntu-latest
container:
image: pierremarchand/asciinema_playground
options: --user root
steps:
- uses: actions/checkout@v3
- name: Set up Python package
run: |
python3 -m pip install --upgrade pip
python3 -m pip install .[test]
- name: Run regression tests
run: |
set enable-bracketed-paste off
pytest
- name: Check module imports with isort
run: |
python3 -m pip install isort
python3 -m isort . --check-only --diff
# uses: isort/isort-action@master
- name: Check formatting with black
uses: psf/black@stable
- name: Check building a binary wheel and a source tarball
run: |
python3 -m pip install twine build --user
python3 -m build --sdist --wheel --outdir dist/ .
python3 -m twine check dist/*