first working version #17
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies. | |
run : | | |
python -m pip install typeguard -r requirements/requirements.python.test.txt | |
- name: Run tests. | |
run : | | |
python -m pytest tests | |
install-as-package-and-test: | |
runs-on: [ubuntu-latest] | |
container: | |
image: python:3.10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: package-sources | |
- name: Install as package. | |
run : | | |
# If this repository becomes public, be sure to use the following instead: | |
# pip install git+https://github.com/uliegecsm/apt-helpers.git@${{ github.sha }} | |
pip install $PWD/package-sources | |
rm -rf package-sources | |
- name: Test as CLI directly. | |
run : | | |
apt-helpers install-packages --update --clean --upgrade --packages jq |