workflows: enable cache, remove matrix

This commit is contained in:
Valentin Lorentz 2021-02-24 12:06:47 +01:00 committed by Valentin Lorentz
parent 64735adf86
commit b78eb9fd44

View File

@ -8,21 +8,30 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: 3.7
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache
$GITHUB_WORKSPACE/oragono
key: ${{ runner.os }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install pre-commit pytest python -m pip install pre-commit pytest
pip install -r requirements.txt pip install -r requirements.txt
- name: Lint - name: Lint
run: | run: |
pre-commit run -a pre-commit run -a