Skip to content

Commit

Permalink
Merge pull request #1 from ajschmidt8/add-ci
Browse files Browse the repository at this point in the history
Add CI
  • Loading branch information
ajschmidt8 authored Jun 18, 2020
2 parents 203d658 + 5dcd774 commit 455f62f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Update the VARIANT arg in devcontainer.json to pick a Python version: 3, 3.8, 3.7, 3.6
ARG VARIANT=3
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}

# [Optional] If your requirements rarely change, uncomment this section to add them to the image.
#
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip install click pytest; pip install -e .",
"postCreateCommand": "pip install pytest; pip install -e .",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
15 changes: 15 additions & 0 deletions .github/workflows/pulls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR Checks

on: pull_request

jobs:
pytest:
runs-on: ubuntu-latest
container: python:3.8
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: pip install -e .; pip install pytest
- name: Run pytest
run: pytest
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## v0.4 (unreleased)

- Add changelog
- Add CI

## v0.3

Expand Down

0 comments on commit 455f62f

Please sign in to comment.