From 91c1d273ca3dbb8429cea5f7502020b24936b010 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 22 Aug 2020 10:56:02 +0200 Subject: Fix GitHub Actions file extension --- .github/workflows/ci.yaml | 44 -------------------------------------------- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 9758584..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: CI -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8, pypy3] - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install . - pip install flake8 pytest pytest-cov - - name: Lint with flake8 - run: | - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - - name: Test with pytest - run: | - pytest lulua - - name: Upload coverage - uses: actions/upload-artifact@v2 - with: - name: coverage - path: htmlcov/ - - name: Build layouts - # Due to the lack of corpora, we can’t run the entire thing here. - run: | - ./gen.sh > build.ninja - ninja _build/report/ar-lulua.svg _build/report/ar-lulua.xmodmap - - name: Upload results - uses: actions/upload-artifact@v2 - with: - name: report - path: _build/report/ - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9758584 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, pypy3] + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install . + pip install flake8 pytest pytest-cov + - name: Lint with flake8 + run: | + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + - name: Test with pytest + run: | + pytest lulua + - name: Upload coverage + uses: actions/upload-artifact@v2 + with: + name: coverage + path: htmlcov/ + - name: Build layouts + # Due to the lack of corpora, we can’t run the entire thing here. + run: | + ./gen.sh > build.ninja + ninja _build/report/ar-lulua.svg _build/report/ar-lulua.xmodmap + - name: Upload results + uses: actions/upload-artifact@v2 + with: + name: report + path: _build/report/ + -- cgit v1.2.3