Skip to content

Commit

Permalink
fix: simplify main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Lissin authored and artdotlis committed Jan 16, 2025
1 parent 20450d2 commit 041e927
Showing 1 changed file with 37 additions and 33 deletions.
70 changes: 37 additions & 33 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,55 @@ on:
pull_request:
push:
branches: [main]
release:
types: [created]

jobs:
mac_win_test:
strategy:
fail-fast: false
matrix:
python-version: ["3.13"]
python-version: ['3.13']
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r configs/dev/requirements.test.txt
pip install -r requirements.txt
pip install tox
- name: tox test
run: |
tox -e py
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r configs/dev/requirements.test.txt
pip install -r requirements.txt
pip install tox
- name: tox test
run: |
tox -e py
lin_lint:
env:
PY_DIR: pyenv
CU_HOME: /home/custom
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.13
uses: actions/setup-python@v3
with:
python-version: "3.13"
- name: Install dependencies
run: |
sudo mkdir -p $CU_HOME && sudo chown runner -R $CU_HOME
sudo apt install -y libedit-dev curl make git-lfs libsqlite3-dev libbz2-dev liblzma-dev
curl https://pyenv.run | PYENV_ROOT=$CU_HOME/$PY_DIR bash
echo "$CU_HOME/$PY_DIR/bin" >> $GITHUB_PATH
echo "$CU_HOME/$PY_DIR/shims" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- name: lint and test
run: |
make dev
make runChecks
- name: Set up Python 3.13
uses: actions/setup-python@v3
with:
python-version: '3.13'
- name: Install dependencies
run: |
sudo mkdir -p $CU_HOME && sudo chown runner -R $CU_HOME
sudo apt install -y libedit-dev curl make git-lfs libsqlite3-dev libbz2-dev liblzma-dev
curl https://pyenv.run | PYENV_ROOT=$CU_HOME/$PY_DIR bash
echo "$CU_HOME/$PY_DIR/bin" >> $GITHUB_PATH
echo "$CU_HOME/$PY_DIR/shims" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: lint and test
run: |
make dev
make runChecks

0 comments on commit 041e927

Please sign in to comment.