Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add tests in CI for windows python v3.9 #219

Merged
merged 3 commits into from
Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .github/workflows/run-test-coverage.yml

This file was deleted.

29 changes: 24 additions & 5 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run tests
name: Tests and coverage

on:
push:
Expand All @@ -16,14 +16,11 @@ on:
- 'mkdocs.yml'

jobs:
build:
tests:
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: windows-latest
python-version: 3.9
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -38,3 +35,25 @@ jobs:
- name: Test with pytest
run: |
python -m pytest --no-cov

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install ruptures
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Test with pytest
run: |
python -m pytest
- name: Upload to Codecov
run: |
bash <(curl -s https://codecov.io/bash)
oboulant marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/upload-artifact@v2
with:
path: coverage.xml