summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-08-22 12:15:12 +0200
committerLars-Dominik Braun <lars@6xq.net>2020-08-22 12:15:12 +0200
commit67770b4224a3787e84b20ff9c74de79712620453 (patch)
tree9b6aa717d0af98af712dc4b8330249af89150d3a
parent633d4cddb34a48bab133b3482fe386e1aa4bb681 (diff)
downloadlulua-67770b4224a3787e84b20ff9c74de79712620453.tar.gz
lulua-67770b4224a3787e84b20ff9c74de79712620453.tar.bz2
lulua-67770b4224a3787e84b20ff9c74de79712620453.zip
actions: Fix CI
-rw-r--r--.github/workflows/ci.yml12
-rwxr-xr-xgen.sh2
2 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9758584..8886753 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,27 +1,29 @@
name: CI
-on:
- push:
- branches: [ $default-branch ]
- pull_request:
- branches: [ $default-branch ]
+on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
+ # Failure for one Python version does not indicate it’ll fail for another
+ fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, pypy3]
steps:
- uses: actions/checkout@v2
+ with:
+ submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
+ sudo apt install ninja-build libxml2-dev libxslt1-dev
pip install .
pip install flake8 pytest pytest-cov
- name: Lint with flake8
run: |
+ cd lulua
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
diff --git a/gen.sh b/gen.sh
index 2bf35a0..2880a00 100755
--- a/gen.sh
+++ b/gen.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Generate build.ninja that builds the docs/stats/…
corpusdir=corpus