Merge pull request #31 from SUNET/dependabot/pip/cryptography-42.0.4 #37
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: CNaaS NAC | |
on: | |
push: | |
branches: [ develop, main ] | |
pull_request: | |
branches: [ develop, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clone repo | |
run: git clone https://github.com/sunet/cnaas-nac.git | |
- name: Install dependencies | |
run: sudo apt install -y python3-pip docker-compose | |
- name: Start PostgreSQL | |
run: (cd cnaas-nac/docker; docker-compose up -d nac_postgres) | |
- name: Install requirements | |
run: (cd cnaas-nac; pip3 install -r requirements.txt) | |
- name: Update database tables | |
run: (cd cnaas-nac; alembic upgrade head) | |
- name: Run tests | |
run: (cd cnaas-nac/src; nose2) |