Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Dec 3, 2020
1 parent 09adcb4 commit 888607e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflow/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

# comprehensive github action yml reference: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions

---
name: CI

on:
push: # any push event to master will trigger this
branches: ["master"]
pull_request: # any pull request to master will trigger this
branches: ["master"]
workflow_dispatch: # allows you to manually trigger run

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.6"]

steps:
- uses: "actions/checkout@v2" # https://github.com/marketplace/actions/checkout
- uses: "actions/setup-python@v2" # https://github.com/marketplace/actions/setup-python
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
# - name: "Run tox targets for ${{ matrix.python-version }}"
# run: "python -m tox"

0 comments on commit 888607e

Please sign in to comment.