-
Notifications
You must be signed in to change notification settings - Fork 350
43 lines (43 loc) · 1.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ci
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version:
["3.7", "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 }}