Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
Moving to github actions
  • Loading branch information
pgaref committed Oct 16, 2020
1 parent 78b305a commit 0a1a8b8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
env:
USING_COVERAGE: '3.6,3.8'

strategy:
matrix:
python-version: ["3.6"]

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade coverage[toml] virtualenv tox tox-gh-actions
pip install -r requirements.txt
- name: "Run tox targets for ${{ matrix.python-version }}"
run: "python -m tox"

0 comments on commit 0a1a8b8

Please sign in to comment.