Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

archive repository #19

archive repository

archive repository #19

Workflow file for this run

name: ci
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get install -y libgpgme11-dev
curl -sSL https://install.python-poetry.org | python3 -
poetry install -n
- name: Check code
run: poetry run black bmaptools/* tests/* --check
test:
needs: check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# Installs compression deps
sudo apt-get install -y pbzip2 pigz lzop liblz4-tool libgpgme11-dev
# Installs poetry
curl -sSL https://install.python-poetry.org | python3 -
poetry install -n
- name: Run tests
run: poetry run python -m unittest -bv