Skip to content

setup: relax requirements #376

setup: relax requirements

setup: relax requirements #376

Workflow file for this run

name: ci
on:
push:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run "black --check --diff ."
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --run "pylama packetnetworking setup.py"
pytests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{matrix.python-version}}"
- run: pip install tox
- name: Test on Python ${{matrix.python-version}}
run: |
pyversion=py${{matrix.python-version}}
pyversion=${pyversion//./}
tox -e "$pyversion"