Skip to content

fix publish action

fix publish action #85

Workflow file for this run

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/*