forked from pypi/inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 813 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
include:
- name: Tests
command: bin/tests
- name: Lint
command: bin/lint
runs-on: ubuntu-latest
name: ${{ matrix.name }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: |
requirements.txt
requirements/*.txt
- name: Install Python dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt --no-deps
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}