Basic Unit Testing #9
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: Basic Unit Testing | |
run-name: Basic Unit Testing | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
Self-hosted-unit-testing: | |
runs-on: [self-hosted, Linux, X64] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Unit Testing Gym | |
run: | | |
source ~/anaconda3/etc/profile.d/conda.sh | |
conda activate CI | |
pip install -r requirements.txt | |
pip install -e . | |
pytest gym | |
pytest learning | |
ruff-linting: | |
runs-on: [self-hosted, Linux, X64] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Lint with ruff | |
run: | | |
source ~/anaconda3/etc/profile.d/conda.sh | |
conda activate CI | |
ruff check . |