Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ci to GitHub actions #707 #734

45 changes: 45 additions & 0 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# GitHub CI build pipeline
name: Cookie Cutter CI build
audreyfeldroy marked this conversation as resolved.
Show resolved Hide resolved

on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
if [ -f requirements.txt ]; then pip install -r requirements_dev.txt; fi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ -f requirements.txt ]; then pip install -r requirements_dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements_dev.txt; else pip install . fi


- name: Run Tests and generate coverage report
run: |
coverage run -m pytest
- name: Archive code coverage html report
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: src/htmlcov
- name: Run package creation
run: |
python -m pip install --user --upgrade build
python -m build
- name: Archive package
uses: actions/upload-artifact@v2
with:
name: cookie-cutter
path: src/dist
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

25 changes: 0 additions & 25 deletions tox.ini

This file was deleted.