-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (36 loc) · 1.09 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
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 .[dev]
- name: Run regression tests
run: |
set enable-bracketed-paste off
python3 -m pytest -v
- name: Check with ruff
run: |
ruff check asciinema_automation/ tests/
- name: Check with mypy
run: |
mypy asciinema_automation/ tests/
- 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/*