Skip to content

Commit

Permalink
Add GitHub action workflow to replace Travis CI (senaite#2125)
Browse files Browse the repository at this point in the history
* Add GitHub action workflow to replace Travis CI

* Delete Travis CI config
  • Loading branch information
winniehell committed Sep 8, 2022
1 parent ff07a9f commit 367b574
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 45 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build and test senaite.core
on:
- push
- pull_request
env:
PLONE_VERSION: "5.2"
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '2.7'
cache: 'pip'
- name: cache eggs
uses: actions/cache@v3
with:
key: eggs-cache-${{ hashFiles('buildout.cfg', 'requirements.txt') }}
path: |
eggs/
- name: install
run: |
pip install virtualenv
virtualenv -p `which python` .
bin/pip install -r requirements.txt
bin/buildout -N -t 3 annotate
bin/buildout -N -t 3
- name: lint
run: |
bin/pip install flake8
bin/flake8 --config ci_flake8.cfg src/{bika,senaite}/
- name: test
run: |
bin/test -s senaite.core.tests
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

File renamed without changes.
21 changes: 0 additions & 21 deletions travis.cfg

This file was deleted.

0 comments on commit 367b574

Please sign in to comment.