Skip to content

Using new bumpver to support backport version release #1585

Using new bumpver to support backport version release

Using new bumpver to support backport version release #1585

Workflow file for this run

---
# Run basic tests for this app
name: continuous-integration
on: [push, pull_request]
jobs:
pre-commit:
# Adapted from: https://github.com/CasperWA/voila-optimade-client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: |
.pre-commit-config.yaml
**/setup.cfg
**/pyproject.toml
**/requirements*.txt
- name: Install dependencies
run: python -m pip install pre-commit~=2.20
- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
test-package:
needs: [pre-commit]
strategy:
matrix:
tag: [latest]
python-version: ['3.8', '3.9', '3.10']
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out app
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
**/setup.cfg
**/pyproject.toml
**/requirements*.txt
- name: Install package
run: pip install -e .[dev]
- name: Run pytest
run: pytest -v tests --cov
env:
TAG: ${{ matrix.tag }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
flags: python-${{ matrix.python-version }}