Export Subscription #244
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
test: | |
name: ${{ matrix.os }} python-${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment-dev.yml | |
environment-name: pycrdt | |
create-args: python=${{ matrix.python-version }} | |
- name: Build and install pycrdt | |
run: pip install -e ".[test]" | |
- name: Check types | |
run: mypy python | |
- name: Run tests | |
run: pytest --color=yes -v tests | |
- name: Run code coverage | |
if: ${{ (matrix.python-version == '3.12') && (matrix.os == 'ubuntu-latest') }} | |
run: | | |
coverage run -m pytest tests | |
coverage report --show-missing --fail-under=100 |