Skip to content

requirements.txt is no more #141

requirements.txt is no more

requirements.txt is no more #141

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy3.8', 'pypy3.9', 'pypy3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements_dev.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip --disable-pip-version-check install -r requirements_dev.txt
- name: Lint with flake8
run: |
flake8 . --count --show-source --statistics
- name: Test with pytest
run: |
python -X dev -m pytest