Skip to content

Update requirements.txt #13

Update requirements.txt

Update requirements.txt #13

Workflow file for this run

name: build-static
on:
push:
paths:
- .github/workflows/**
- requirements.txt
- tests/**
jobs:
parse-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- name: Parse matrix
id: set-matrix
run: |
matrix=$(jq -c . < .github/workflows/matrix.json)
echo "matrix=${matrix}" >> $GITHUB_OUTPUT
build:
needs: parse-matrix
runs-on: ${{ matrix.os }}
strategy:
matrix: ${{fromJson(needs.parse-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v2
with:
files: "requirements.txt"
- name: Install Package (fixed requirements)
if: steps.check_files.outputs.files_exists == 'true'
run: |
pip install pytest
pip install -r requirements.txt
pip freeze
- name: Run tests
if: steps.check_files.outputs.files_exists == 'true'
run: python -m pytest .