Created
April 15, 2024 21:25
-
-
Save FrancisZhuang/93f0c09d9685f2811fb06e13fdbd05c4 to your computer and use it in GitHub Desktop.
Sample workflow
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: sample | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry config virtualenvs.create true | |
poetry config virtualenvs.in-project true | |
poetry install | |
- name: Test | |
run: | | |
source .venv/bin/activate | |
pytest . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment