Skip to content

Commit

Permalink
Python 3.8 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dlesbre committed Jan 23, 2024
1 parent 3fde140 commit 899e735
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
contents: read

jobs:
test:
test-3-11:
runs-on: ubuntu-latest

steps:
Expand All @@ -35,3 +35,25 @@ jobs:
run: btac --version
- name: Test with pytest
run: make test

test-3-8:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: make setup-dev
- name: Lint with flake8
run: make flake8
- name: Run formatters
run: make format-check
- name: Typecheck with mypy
run: make mypy
- name: Check script
run: btac --version
- name: Test with pytest
run: make quick-test
8 changes: 7 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DOCKER_IMG_NAME = btac
PRECOMMIT = pre-commit
MYPY = mypy
PYTEST = pytest
QUICK_TEST = $(PYTEST) -k "not test_9_API"

# set to ON/OFF to toggle ANSI escape sequences
COLOR = ON
Expand Down Expand Up @@ -73,9 +74,14 @@ precommit-all: ## run precommit on all files
$(call print,Running precommit on all files)
$(PRECOMMIT) run --all-files

.PHONY: test
quick-test: ## Run local tests (perform no API queries)
$(call print,Running pytest (skip API query test))
$(QUICK_TEST)

.PHONY: test
test: ## Run all tests
$(call print,Running pytest)
$(call print,Running pytest on all test)
$(PYTEST) --cov

.PHONY: coverage
Expand Down

0 comments on commit 899e735

Please sign in to comment.