Skip to content

Commit

Permalink
Merge pull request #300 from lsst/tickets/DM-25192
Browse files Browse the repository at this point in the history
DM-25192: Enable GitHub Actions
  • Loading branch information
timj committed Jun 2, 2020
2 parents 74c33e1 + ce832f8 commit df727ec
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 10 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: lint

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install
run: pip install -r <(curl https://raw.githubusercontent.com/lsst/linting/master/requirements.txt)

- name: Run linter
run: flake8
26 changes: 26 additions & 0 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run mypy

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install
run: pip install mypy

- name: Ensure LSST module root
run: touch python/lsst/__init__.py

- name: Change to source directory and run mypy
run: 'cd python && mypy lsst'
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

0 comments on commit df727ec

Please sign in to comment.