Skip to content

Update CI to create only one report #25

Update CI to create only one report

Update CI to create only one report #25

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
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'

Check failure on line 25 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 25, Col: 9): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
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 }}