Skip to content

Commit

Permalink
Circle conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcardle committed Mar 15, 2024
1 parent 521c988 commit 3c55ab1
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 7 deletions.
50 changes: 44 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ orbs:
browser-tools: circleci/[email protected]

executors:
python:
docker:
- image: cimg/python:3.10
python3-9: {docker: [{image: cimg/python:3.9}]}
python3-10: {docker: [{image: cimg/python:3.10}]}
python3-11: {docker: [{image: cimg/python:3.11}]}
python3-12: {docker: [{image: cimg/python:3.12}]}

jobs:
setup:
Expand All @@ -19,8 +20,25 @@ jobs:
- run:
name: Install python dependencies
command: poetry install
tests:
build:
executor: python
parameters:
python-version:
type: string
default: "py39"
steps:
- checkout
- python/install-packages:
pkg-manager: poetry
- run:
name: Install apt dependencies
command: |
sudo apt-get update
sudo apt-get install -y libfuse-dev
- run:
command: poetry build
tests: &test-template
executor: python3.12
steps:
- checkout
- python/install-packages:
Expand All @@ -33,9 +51,25 @@ jobs:
- run:
command: poetry run pytest --cov=sizefs
- run:
command: poetry run tox
command: poetry run tox -e << parameters.python-version >>
- run:
command: poetry build
tests-3-9:
<<: *test-template
executor: python3-9
parameters: {python-version: {default: "py39", type: string}}
tests-3-10:
<<: *test-template
executor: python3-10
parameters: {python-version: {default: "py310", type: string}}
tests-3-11:
<<: *test-template
executor: python3-11
parameters: {python-version: {default: "py311", type: string}}
tests-3-12:
<<: *test-template
executor: python3-12
parameters: {python-version: {default: "py312", type: string}}
linting:
executor: python
steps:
Expand All @@ -51,5 +85,9 @@ workflows:
main:
jobs:
- setup
- tests: {requires: [setup]}
- tests-3-9: {requires: [setup], python-version: "py39"}
- tests-3-10: {requires: [setup], python-version: "py310"}
- tests-3-11: {requires: [setup], python-version: "py311"}
- tests-3-12: {requires: [setup], python-version: "py312"}
- linting: {requires: [setup]}
- build: {requires: [setup, tests-3-9, tests-3-10, tests-3-11, tests-3-12, linting]}
Loading

0 comments on commit 3c55ab1

Please sign in to comment.