Skip to content

Commit

Permalink
switch CI to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mscarey committed Aug 11, 2021
1 parent fce67b5 commit 264ac8f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 55 deletions.
55 changes: 0 additions & 55 deletions .circleci/config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-recording coveralls==2.1.2 pytest-cov
- name: Test with pytest
env:
CAP_API_KEY: ${{ secrets.CAP_API_KEY }}
run: |
pytest tests/ --record-mode=none --cov=authorityspoke --cov-report=term-missing
- name: Upload coverage data to coveralls.io
if: matrix.python-version == 3.9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls

0 comments on commit 264ac8f

Please sign in to comment.