mirror of
https://github.com/simonw/dclient.git
synced 2026-09-15 21:14:11 +02:00
Initial commit
This commit is contained in:
commit
ac7aaab22d
4 changed files with 174 additions and 0 deletions
29
.github/workflows/test.yml
vendored
Normal file
29
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
if: hashFiles('setup.py')
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
cache-dependency-path: '**/setup.py'
|
||||
- name: Install dependencies
|
||||
if: hashFiles('setup.py')
|
||||
run: |
|
||||
pip install -e '.[test]'
|
||||
- name: Run tests
|
||||
if: hashFiles('setup.py')
|
||||
run: |
|
||||
pytest
|
||||
Loading…
Add table
Add a link
Reference in a new issue