CI
This commit is contained in:
parent
0741bd182e
commit
6f401ed3b7
3 changed files with 50 additions and 41 deletions
45
.github/workflows/pytest.yml
vendored
45
.github/workflows/pytest.yml
vendored
|
|
@ -6,26 +6,29 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [3.8.10, 3.9.9]
|
||||
poetry-version: [1.1.12]
|
||||
os: [ubuntu-18.04, macos-latest, windows-latest]
|
||||
python-version: [3.10.8]
|
||||
poetry-version: [1.2.2]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Run image
|
||||
uses: abatilo/actions-poetry@v2.0.0
|
||||
with:
|
||||
poetry-version: ${{ matrix.poetry-version }}
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
- name: Pytest and Coverage
|
||||
run: |
|
||||
poetry run coverage run -m --source=stacosys pytest tests
|
||||
poetry run coverage report
|
||||
- name: Send report to Coveralls
|
||||
run: poetry run coveralls
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Run image
|
||||
uses: abatilo/actions-poetry@v2.0.0
|
||||
with:
|
||||
poetry-version: ${{ matrix.poetry-version }}
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
- name: Pytest and Coverage
|
||||
run: |
|
||||
poetry run coverage run -m --source=stacosys pytest tests
|
||||
poetry run coverage report
|
||||
- name: Send report to Coveralls
|
||||
run: poetry run coveralls
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue