Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,37 @@ permissions:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout do repositório
uses: actions/checkout@v5
with:
submodules: recursive

- name: Configura python
uses: actions/setup-python@v6
- name: Instala dependências de compilação
uses: awalsh128/cache-apt-pkgs-action@latest
with:
python-version: '3.5.10'
cache: pip
packages: make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
version: 1.0

- name: Cache pyenv versions
uses: actions/cache@v4
with:
path: $HOME/.pyenv/versions
key: ${{ runner.os }}-pyenv-3.5.10
restore-keys: |
${{ runner.os }}-pyenv-

- name: Instala pyenv e Python 3.5.10
run: |
curl https://pyenv.run | bash
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install -s 3.5.10
pyenv global 3.5.10
python --version
python -m pip install --upgrade pip setuptools wheel

- name: Instala dependências
run: pip install -r requirements.txt
Expand Down
32 changes: 26 additions & 6 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,37 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout do repositório
uses: actions/checkout@v5
with:
submodules: recursive

- name: Configura python
uses: actions/setup-python@v6
- name: Instala dependências de compilação
uses: awalsh128/cache-apt-pkgs-action@latest
with:
python-version: '3.5.10'
cache: pip
packages: make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
version: 1.0

- name: Cache pyenv versions
uses: actions/cache@v4
with:
path: $HOME/.pyenv/versions
key: ${{ runner.os }}-pyenv-3.5.10
restore-keys: |
${{ runner.os }}-pyenv-

- name: Instala pyenv e Python 3.5.10
run: |
curl https://pyenv.run | bash
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install -s 3.5.10
pyenv global 3.5.10
python --version
python -m pip install --upgrade pip setuptools wheel

- name: Instala dependências
run: pip install -r requirements.txt
Expand All @@ -45,11 +64,12 @@ jobs:
permissions:
pages: write
id-token: write
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy no GitHub Pages
id: deployment
uses: actions/deploy-pages@v4