Flight refactor strategies #98
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: CI/CD | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- "*" | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
- name: install requirements | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install pre-commit tox | |
- name: run pre-commit | |
run: pre-commit run -a | |
- name: mypy | |
run: | | |
cd flox | |
tox -e mypy | |
safety-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: install requirements | |
run: | | |
python -m pip install --upgrade pip setuptools | |
python -m pip install '.[all]' | |
python -m pip install safety | |
- name: run safety check | |
run: safety check | |
test-flox: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.10", "3.11"] | |
name: "Test FLoX on py${{ matrix.python-version }} x ${{ matrix.os }} " | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install -U pip setuptools | |
- run: python -m pip install tox | |
- name: run flox_tests | |
run: | | |
tox -e py |