Pytest #530
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@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
# Used by ci_test.sh | |
- name: Install dependencies | |
run: | | |
python setup.py install | |
pip install pytest | |
pip install solc-select | |
- name: Run Tests | |
run: | | |
pytest tests/test_metadata.py |