From 83f8afe113022b6f7ca6d6f3d0ed0caecdd7ba87 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 30 Mar 2021 21:33:49 +1100 Subject: [PATCH] Add github actions --- .github/workflows/ci.yaml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/style.yaml | 11 +++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/style.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000000..f935bdda7f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,32 @@ +name: Django CI + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +jobs: + + # Run tests on an SQLite database + sqlite: + + runs-on: ubuntu-latest + + strategy: + max-parallel: 4 + matrix: + python-version: [3.7, 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: | + pip3 install invoke + invoke install + - name: Run Tests + run: invoke coverage \ No newline at end of file diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml new file mode 100644 index 0000000000..90dae47857 --- /dev/null +++ b/.github/workflows/style.yaml @@ -0,0 +1,11 @@ +name: Style Checks + +on: push + +jobs: + pep: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 \ No newline at end of file