Skip to content

Update CI to create only one report #26

Update CI to create only one report

Update CI to create only one report #26

Workflow file for this run

name: ci
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version:
["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - ${{ github.event_name }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
run:
|
pip install pipenv
pipenv install --dev
- name: Run tests
run: pipenv run coverage run --source=twstock -m unittest
create-reports:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
run: |
pip install pipenv
pipenv install --dev
- name: Run tests
run: pipenv run coverage run --source=twstock -m unittest
- name: Create reports
run: |
pipenv run coveralls
pipenv run codecov
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}