mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 22:57:50 -03:00
Merge commit 'f955c625aded244864e83a872b396868a490dbc5' as 'go-enry'
This commit is contained in:
32
go-enry/.github/workflows/pyTest.yml
vendored
Normal file
32
go-enry/.github/workflows/pyTest.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
on: [push, pull_request]
|
||||
name: Python Tests
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.8', '3.9', '3.10']
|
||||
platform: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: Install Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.19.x
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r python/requirements.txt
|
||||
if [ -f python/requirements.dev.txt ]; then pip install -r python/requirements.dev.txt; fi
|
||||
- name: Build and install package
|
||||
run: |
|
||||
pip install setuptools wheel
|
||||
pip -v install --no-use-pep517 -e python
|
||||
- name: Test
|
||||
run: |
|
||||
pytest python/
|
Reference in New Issue
Block a user