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

Archived

Archived #28

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v2
- name: Install linters
run: |
python -m pip install black flake8
- name: Check Python code formatting with Black
run: |
black --check --quiet .
- name: Lint Python code with Flake8
run: |
flake8
test-script:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v2
- name: Install Tor
run: sudo apt-get install -y tor
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest
working-directory: ./tools
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Run pytest
working-directory: ./tools
env:
DIR_AUTH_PASSWORD: dummy
run: |
make cache
python -m pytest
test-makefile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Tor
run: sudo apt-get install -y tor
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Run Makefile
working-directory: ./tools
env:
DIR_AUTH_PASSWORD: dummy
run: |
make cache
make update_cache_churn