Update CI to create only one report #25
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: 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 GitHub Actions / ciInvalid workflow file
|
||
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 }} |