WIP: Combine staking addr with location #37
Workflow file for this run
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: "unit tests - all" | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
tox: | |
name: "Python ${{ matrix.python-version }} -- ${{ matrix.os }} " | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.11.x", "3.12.x"] | |
experimental: [false] | |
include: | |
- os: ubuntu-latest | |
python-version: "3.13.x" | |
experimental: true | |
- os: macos-latest | |
python-version: "3.13.x" | |
experimental: true | |
steps: | |
- name: "check out repository" | |
uses: "actions/checkout@v4" | |
with: | |
submodules: 'true' | |
- name: "set up python ${{ matrix.python-version }}" | |
uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "get pip cache dir" | |
id: "pip-cache" | |
run: | | |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
- name: "test" | |
run: echo "${{ steps.pip-cache.outputs.dir }}" | |
- name: "cache pip packages" | |
uses: "actions/cache@v4" | |
with: | |
path: "${{ steps.pip-cache.outputs.dir }}" | |
key: "${{ runner.os }}-pip-${{ hashFiles('**/base.txt', '**/local.txt') }}" | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: "install tox" | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: "run tox" | |
env: | |
TOXENV: py3 | |
run: | | |
tox |