Update config.yml

This commit is contained in:
Ishaan Jaff 2023-08-01 15:32:09 -07:00 committed by GitHub
parent 3c2486c102
commit 8fd9d0beed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,28 @@
version: 2.1 version: 2.1
jobs: jobs:
build_test: build:
docker: docker:
- image: cimg/python:3.11.0 - image: circleci/python:3.10 # Use Python 3.10 image
working_directory: ~/project
steps: steps:
- checkout # checkout source code to working directory - checkout
# Install dependencies from requirements.txt
- run: - run:
command: | # create whl and use pipenv to install dependencies name: Install Dependencies
python3 setup.py sdist bdist_wheel command: |
sudo add-apt-repository universe -y python -m pip install --upgrade pip
sudo apt-get update python -m pip install -r requirements.txt
sudo apt install -y python3-pip
sudo pip install pipenv # Run pytest
pipenv install dist/convsn-0.0.3-py3-none-any.whl
pipenv install pytest
- run: - run:
command: | # Run test suite name: Run Pytest
pipenv run pytest command: |
python -m pytest
workflows: workflows:
build_test_publish: version: 2
test_local_version:
jobs: jobs:
- build_test - build