Merge pull request #557 from crytic/dependabot/github_actions/dev/act… #813
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: Pytest | |
defaults: | |
run: | |
# To load bashrc | |
shell: bash -ieo pipefail {0} | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: [main, dev] | |
schedule: | |
# run CI every day even if no PRs/merges occur | |
- cron: '0 12 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
cache: "pip" | |
cache-dependency-path: setup.py | |
- name: Install dependencies | |
run: | | |
pip install ".[test]" | |
solc-select use latest --always-install | |
- name: Run Tests | |
run: | | |
pytest tests |