You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stacosys/.github/workflows/pytest.yml

28 lines
683 B
YAML

name: pytest
on: push
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.10.13]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up rye
uses: sksat/setup-rye@v0.23.1
- name: Sync dependencies using rye
run: |
rye pin ${{ matrix.python-version }}
rye sync
- name: Pytest and Coverage
run: |
rye run coverage run -m --source=stacosys pytest tests
rye run coverage report
- name: Send report to Coveralls
run: rye run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}