django_example_ynh/.github/workflows/pytest.yml

40 lines
820 B
YAML
Raw Normal View History

2020-12-23 19:53:13 +01:00
name: pytest
on:
2022-04-02 20:07:31 +02:00
push:
branches:
- master
pull_request:
2020-12-23 19:53:13 +01:00
schedule:
- cron: '0 8 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
2022-04-02 20:07:31 +02:00
python-version: ["3.10", "3.9", "3.8", "3.7"]
2020-12-23 19:53:13 +01:00
steps:
2022-04-02 20:07:31 +02:00
- uses: actions/checkout@v2
2020-12-23 19:53:13 +01:00
- name: 'Set up Python ${{ matrix.python-version }}'
2022-04-02 20:07:31 +02:00
uses: actions/setup-python@v2
2020-12-23 19:53:13 +01:00
with:
python-version: '${{ matrix.python-version }}'
- name: 'Install package'
run: |
pip3 install poetry
make install
- name: 'List installed packages'
run: |
poetry run pip freeze
- name: 'Run tests with Python v${{ matrix.python-version }}'
run: |
make pytest
2020-12-23 19:53:13 +01:00
- name: 'Upload coverage report'
run: bash <(curl -s https://codecov.io/bash)