Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run unit tests

on:
workflow_dispatch:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-24.04

strategy:
max-parallel: 4
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: make dev

- name: Validate code format
run: make check

- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ The following organizations or individuals have contributed to this repo:
- Philippe Ombredanne @ pombredanne
- Steven Esser @ majurg
- Tushar Goel @ TG1999

- Thomas Druez @ tdruez
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ isort:

black:
@echo "-> Apply black code formatter"
${VENV}/bin/black -l 100 --exclude=src/fetchcode/vcs/pip src tests setup.py
${VENV}/bin/black -l 100 --extend-exclude=src/fetchcode/vcs/pip/* .

doc8:
@echo "-> Run doc8 validation"
Expand All @@ -33,11 +33,11 @@ valid: isort black

check:
@echo "-> Run pycodestyle (PEP8) validation"
@${ACTIVATE} pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,migrations,settings.py,.cache,etc,src/fetchcode/vcs/pip,tests/data/ .
@${ACTIVATE} pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,migrations,settings.py,.cache,etc,src/fetchcode/vcs/pip,tests/ .
@echo "-> Run isort imports ordering validation"
@${ACTIVATE} isort --sl --check-only -l 100 --skip=src/fetchcode/vcs/pip setup.py src tests
@${ACTIVATE} isort --sl --check-only -l 100 --skip=src/fetchcode/vcs/pip setup.py tests
@echo "-> Run black validation"
@${ACTIVATE} black --check --check -l 100 --exclude=src/fetchcode/vcs/pip src tests setup.py
@${ACTIVATE} black --check -l 100 --extend-exclude=src/fetchcode/vcs/pip/* .

clean:
@echo "-> Clean the Python env"
Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ CLI_ARGS=$1
################################

# Requirement arguments passed to pip and used by default or with --dev.
REQUIREMENTS="--editable . --constraint requirements.txt"
DEV_REQUIREMENTS="--editable .[testing] --constraint requirements.txt --constraint requirements-dev.txt"
DOCS_REQUIREMENTS="--editable .[docs] --constraint requirements.txt"
REQUIREMENTS="--editable ."
DEV_REQUIREMENTS="--editable .[testing]"
DOCS_REQUIREMENTS="--editable .[docs]"

# where we create a virtualenv
VIRTUALENV_DIR=venv
Expand Down
50 changes: 0 additions & 50 deletions etc/ci/azure-container-deb.yml

This file was deleted.

51 changes: 0 additions & 51 deletions etc/ci/azure-container-rpm.yml

This file was deleted.

39 changes: 0 additions & 39 deletions etc/ci/azure-posix.yml

This file was deleted.

39 changes: 0 additions & 39 deletions etc/ci/azure-win.yml

This file was deleted.

15 changes: 0 additions & 15 deletions etc/ci/install_sudo.sh

This file was deleted.

Loading