Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Refactor Softmax

Refactor Softmax #659

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CUDA_VISIBLE_DEVICES: 2
jobs:
build:
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
python-version: [ "3.8" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
python -m pip install isort
python -m pip install black
python -m pip install black[jupyter]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Check Python syntax errors
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Validate the coding style
run: |
python -m isort . --check
python -m black . --check
- name: Install Trident
run: |
bash install_package.sh
- name: Test with pytest
run: |
python -m pytest -n 2 .