-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix workflows one more config fix for CI trying to fix permissions trying again to fix ci fixing CI again fix again fixing CI again trying to fix trying to fix again fix ci fix ci again again
- Loading branch information
Anton Kulaga
committed
Jun 4, 2024
1 parent
c6eba3e
commit d2ca6e7
Showing
3 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Micromamba | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y curl | ||
mkdir -p $HOME/micromamba | ||
curl -L https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj -C $HOME/micromamba --strip-components=1 bin/micromamba | ||
env: | ||
MAMBA_ROOT_PREFIX: $HOME/micromamba | ||
|
||
- name: Verify Micromamba Installation | ||
run: | | ||
$HOME/micromamba/micromamba --version | ||
env: | ||
MAMBA_ROOT_PREFIX: $HOME/micromamba | ||
|
||
- name: Create environment | ||
run: | | ||
$HOME/micromamba/micromamba create --name just-agents -y -c conda-forge python=${{ matrix.python-version }} | ||
$HOME/micromamba/micromamba env list | ||
env: | ||
MAMBA_ROOT_PREFIX: $HOME/micromamba | ||
|
||
- name: Install dependencies | ||
run: | | ||
$HOME/micromamba/micromamba install -n just-agents -f environment.yaml -y -c conda-forge | ||
env: | ||
MAMBA_ROOT_PREFIX: $HOME/micromamba | ||
|
||
- name: Set up Micromamba environment | ||
run: | | ||
echo "$HOME/micromamba/bin:$HOME/micromamba/envs/just-agents/bin" >> $GITHUB_PATH | ||
echo "MAMBA_ROOT_PREFIX=$HOME/micromamba" >> $GITHUB_ENV | ||
- name: Verify environment creation | ||
run: | | ||
$HOME/micromamba/micromamba env list | ||
ls -al $HOME/micromamba/envs/just-agents | ||
env: | ||
MAMBA_ROOT_PREFIX: $HOME/micromamba | ||
|
||
- name: Run tests | ||
run: | | ||
$HOME/micromamba/micromamba run -n just-agents which python | ||
$HOME/micromamba/micromamba run -n just-agents which pytest | ||
$HOME/micromamba/micromamba run -n just-agents pytest | ||
env: | ||
MAMBA_ROOT_PREFIX: $HOME/micromamba |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[pytest] | ||
addopts = --verbose | ||
testpaths = tests | ||
python_files = test_*.py | ||
python_classes = Test* | ||
python_functions = test_* | ||
markers = | ||
slow: marks tests as slow (deselect with '-m "not slow"') | ||
smoke: marks smoke tests |
This file was deleted.
Oops, something went wrong.