Add new categories and uses to the Default Taxonomy #197
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Checks | |
on: | |
pull_request: | |
branches: | |
- "*" | |
env: | |
CONTAINER: fideslang-local | |
IMAGE: ethyca/fideslang:local | |
DEFAULT_PYTHON_VERSION: "3.10.11" | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build fideslang container | |
uses: docker/build-push-action@v2 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
context: . | |
target: prod | |
outputs: type=docker,dest=/tmp/${{ env.CONTAINER }}.tar | |
push: false | |
tags: ${{ env.IMAGE }} | |
- name: Upload fideslang container | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ env.CONTAINER }} | |
path: /tmp/${{ env.CONTAINER }}.tar | |
retention-days: 1 | |
Export: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10.11" | |
cache: "pip" | |
- name: Install Package | |
run: pip install . | |
- name: Run Export | |
run: python scripts/export_default_taxonomy.py | |
Static-Checks: | |
continue-on-error: true | |
strategy: | |
matrix: | |
session_name: ["black", "mypy", "pylint", "xenon"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.DEFAULT_PYTHON_VERSION }} | |
cache: "pip" | |
- name: Install Nox | |
run: pip install nox | |
- name: Run Static Check | |
run: nox -s ${{ matrix.session_name }} | |
Pytest-Matrix: | |
strategy: | |
matrix: | |
python_version: ["3.8", "3.9", "3.10", "3.11"] | |
pydantic_version: ["1.8.2", "1.9.2", "1.10.9"] | |
pyyaml_version: ["5.4.1", "6.0"] | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
cache: "pip" | |
- name: Install Nox | |
run: pip install nox | |
- name: Run Tests | |
run: nox -s "tests-${{ matrix.python_version }}(pyyaml_version='${{ matrix.pyyaml_version }}', pydantic_version='${{ matrix.pydantic_version }}')" |