Skip to content

workflows: just ub16 and py354 #370

workflows: just ub16 and py354

workflows: just ub16 and py354 #370

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-16.04
strategy:
matrix:
python-version:
- "3.5.4"
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"