Skip to content

Continuous Integration #185

Continuous Integration

Continuous Integration #185

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- 'master'
tags:
- '*'
pull_request:
types:
- 'opened'
- 'synchronize'
workflow_dispatch:
schedule:
# Schedule every Saturday at 00:30 UTC
- cron: '30 0 * * 6'
jobs:
python-ci:
uses: epsy/python-workflows/.github/workflows/python-ci.yaml@main
with:
package-folder: clize
python-windows-ci:
name: "Run tests (Windows)"
runs-on: 'windows-latest'
continue-on-error: true
steps:
- uses: epsy/python-workflows/install-tox@main
with:
python-version: "3.10"
- name: Test with tox
uses: epsy/python-workflows/tox-ci@main
with:
tox-args: ""
python-test-args: "-m unittest"
- name: Verify that tox 'test' env ran
run: cat ./tox-proof-test
shell: bash
mypy:
name: "Run mypy on typed example"
runs-on: 'ubuntu-latest'
steps:
- uses: epsy/python-workflows/install-tox@main
with:
python-version: "3.10"
- name: Run mypy with tox
uses: epsy/python-workflows/tox-ci@main
with:
tox-args: -e typecheck
python-test-args: examples/typed_cli.py
problem-matcher: mypy