-
Notifications
You must be signed in to change notification settings - Fork 21
35 lines (33 loc) · 1.06 KB
/
test.yml
File metadata and controls
35 lines (33 loc) · 1.06 KB
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
name: CI
on:
pull_request:
push:
branches: [master]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
poetry-version: [2.1]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Tests
env: # Or as an environment variable
STAKE_TOKEN: ${{ secrets.STAKE_TOKEN }}
run: poetry install && poetry run pytest --cov=stake --cov-report=xml
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10 }}
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml